====== Basic Unix Commands ======
Unix has a lot of useful commands. If you want to find out more information about any of these commands, use the ''man'' command, which stands for //manual//. For example, to find out more about the ''ls'' command, use
> man ls
===== Directory Access/Manipulation =====
^ Command ^ Meaning ^
| ''cd
'' | change directory |
| ''ls []'' | list the contents of the directory, current directory if no directory is given |
| ''mkdir '' | create a directory |
| ''rmdir '' | delete a directory; only works if the directory is empty |
| ''pwd'' | to see the Present Working Directory (the directory that you're currently in) |
''ls'' has a lot of optional command-line arguments:
^ Command-line Argument ^ Meaning ^
| ''-l'' | a long listing of the files |
| ''-r'' | reverse order |
| ''-t'' | sort by creation time |
Example: ''ls -lrt'' lists the files in the current directory by creation time, from most recent to least recent, and lists all the information about the files
===== File Manipulation =====
==== Copy Files and Directories ====
To make a copy of a file (''source'') and name it ''destination'':
cp