Results 1 to 3 of 3

Thread: Extremely Basic Unix Run Down

  1. #1
    Charles's Avatar
    Charles is offline Senior Net Builder
    Join Date
    Dec 2008
    Location
    On the Bike
    Posts
    1,211
    Blog Entries
    5
    Thanks
    311
    Thanked 311 Times in 212 Posts

    Extremely Basic Unix Run Down

    Code:
    cd /filepath/here/
    This allows you change directory. By including a trailing slash before your request, you are asking to take yourself to the root of the server before processing the request. By placing two periods and then a trailing slash (../), you are asking to go up one directory and then to process the request. By placing a single period and then a trailing slash (./), you are asking to process the request from the directory that you are in.

    Code:
    ls -al
    This will list all of the files/folders that are in directory that you are currently in.

    Code:
    rm filename.html
    This will remove the specified file.

    Code:
    cp filename.html /filepath
    This will copy "filename.html" to the folder "filepath," located at the root of the server.

    Code:
    mv filename.html /filepath
    This will move "filename.html" to the folder "filepath," located at the root of the server.

    Code:
    clear
    This will clear your screen.

    Code:
    cat filename.html
    This command can be used to display the contents of the specified file.

    Code:
    grep example filename.html
    This command will display each line in "filename.html" that contains the word "example." (case-sensitive)

    Code:
    grep -i example filename.html
    This command will display each line in "filename.html" that contains the word "example." (not case-sensitive)

    Code:
    grep 'example two' filename.html
    Use single-quotes when you need to find a phrase.

    Code:
    wc filename.html
    This will process a word count on "filename.html."

    That's a very basic rundown on how Unix works.

    There is a lot more to it, and I wouldn't get too cocky and tell everyone that you're able to use Unix to help produce works of art -- you're still a fairly large milestone away.

  2. Thanked by:

    Shenron (18 December, 2008), Will.Spencer (18 December, 2008)

  3. #2
    Shenron's Avatar
    Shenron is offline Administrator
    Join Date
    Dec 2008
    Location
    Portugal
    Posts
    1,900
    Blog Entries
    2
    Thanks
    561
    Thanked 548 Times in 368 Posts
    Thx a lot!
    I really tend to forget some Unix basics...

  4. #3
    Charles's Avatar
    Charles is offline Senior Net Builder
    Join Date
    Dec 2008
    Location
    On the Bike
    Posts
    1,211
    Blog Entries
    5
    Thanks
    311
    Thanked 311 Times in 212 Posts
    Quote Originally Posted by Shenron View Post
    Thx a lot!
    I really tend to forget some Unix basics...
    You're welcome. That's about as far as I've gotten (other than using sed, pico or the unzip command -- but that's not rocket science).

Similar Threads

  1. Replies: 3
    Last Post: 20 July, 2010, 12:35 PM
  2. [WTS] An Extremely High Quality Site on TECHNOLOGY - PR 6
    By Divyesh in forum Links
    Replies: 0
    Last Post: 8 March, 2010, 18:09 PM
  3. Replies: 2
    Last Post: 14 September, 2009, 18:25 PM
  4. Unix command for making files
    By Mr.Bill in forum Managing
    Replies: 2
    Last Post: 31 July, 2009, 11:37 AM
  5. Replies: 3
    Last Post: 14 May, 2009, 09:07 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •