| Advanced
Commands |
| command |
action |
| pwd |
Shows the Full path that you are in |
| ls |
Lists all the files in the current directory |
| ls -al |
Lists all files and information |
| ls -alR |
Lists all files and information in all subdirectories |
| ls -alR > filename.txt |
Same as ls -alR, outputs the results to a file |
| ls *.ini |
Lists all files ending with .ini |
| cd [directory name] |
Changes to a new directory |
| cd .. |
Changes to directory above current one |
| vdir |
Gives a more detailed listing than the "ls" command
|
| pico [filename] |
Edit that filename |
| exit |
Log off your shell |
| clear |
Clears the screen |
| passwd |
Changes your password to a new one |
| mv [oldname] [newname] |
Moves the File and also can rename |
| cp [filename] [new filename] |
Copy the old File to a new Filename |
| rm [filename] |
Deletes that file |
| rm * |
Deletes everything in that directory |
| rm *.txt |
Delete's everything that has the extension *.txt |
| mkdir |
Make's a directory |
| ls -d */ |
List's all in current directory |
| cp -r [dir] [newdir] |
Copies a directory and all files/directories in it |
| grep [text] [filename] |
Searches for text within a file |
| find . -name [filename] -print |
Searches for a file starting with current directory |
| chmod 604 [filename] |
Minimum permissions |
| chmod 705 [directory name] |
Minimum permissions for directories |
| chmod 755 [filename] |
Minimum permissions for scripts & programs |
| chmod 606 [filename] |
Permissions for data files used by scripts |
| chmod 703 [directory name] |
Write-only permissions for public FTP uploading |