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.
This will list all of the files/folders that are in directory that you are currently in.
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.
This will clear your screen.
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.
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.
Bookmarks