Here is the video version, if you prefer it:
Here are all of the commands we have learned:
- The general command format is:
command -options arguments - Commands are case sensitive
cd directoryto change the directory you are located in (current directory)pwdto print the absolute path to the directory you are inman commandgives you the man pages of the command- Options can be both short (
-) and long (--) - Use
-hor--helpto see a quick description of command usage lscommand lists directory contentscp src destcopies from source (src) to destination (dest)mv old newrenames file with filenameoldto filenamenewrm itemis used to delete theitem;rm -r folderto delete thefoldertouch filenameto create a new file with namefilenamemkdir dirnameto create a new directory with namedirnamermdir dirnameto remove a directory with the namedirname(the directory has to be empty)echo messageto print out themessagecat filenameto print out the contents of thefilenameless filenameto page through the contents of thefilenameheadandtailfor viewing only the first or the last portion of a filesudo commandto execute thecommandas the superusersuto switch user (without an argument switches to the superuser)grep pattern filefor pattern matching in fileswc fileto count the number of words (and other stuff) in afile– haven’t used it as much
Hope this refreshed your memory!
Leave a Reply