typing this (if you're on a Mac) | or this (if you run Windows) | does this |
---|---|---|
|
| takes you to the root directory |
| no direct shortcut | takes you to your home directory |
|
| takes you up one level in your file directory |
|
| takes you up two levels in your file directory |
|
| take you to some folder on your computer |
|
| unzip a .tar file |
|
| Compresses a file to be filename.gz |
|
| list all files and folders in your working diretory with info on permissions. -a option shows hidden files |
|
| counts files in a directory |
|
| Moves a file or folder to a new location. Important, if the new location doesn't exist then mv renames your file to the destination name |
| no direct shortcut | lists all files and folders in your working directory sorted by size |
|
| simpler version of the command above. lists all files in a folder and shows their file size |
|
| view free/used disk space by drive |
|
| lists all files and folders in your working directory as a tree structure |
| no direct shortcut | lists drives and their size (as well as used/free space on each) |
pressing up arrow | pressing up arrow | recalls previous command |
|
| edits permissions on file. See graphic below for the appropriate numbers to use in place of ### |
|
| makes you the owner of a file |
|
| assigns you as the group for the file |
|
| removes a folder and all of its contents |
| no direct shortcut | downloads a file from the web |
|
| opens up a text file in a text editor directly in your Bash application |
| no direct shortcut | add a new piece of software to the system PATH so it is executable from anywhere |
|
| add lines like this to your ~/.bash_profile to create a keyboard shortcut, in this case typing 'something' actually does 'something else' |