Do Some Basic UNIX
From Brain Mapping
[edit] Some basic unix commands
Want more? Try the excellent tutorials at FreeEngineer.org, Mayo, UnixGeeks.org or Idaho state and, of course, the bash manual
| Command | Meaning | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| man function | show the manual page for a function | ||||||||||||||||||||||||||||
| id | list your personal user id, username, and the groups you belong to. | ||||||||||||||||||||||||||||
| id username | list username's id, username, and the groups they belong to. | ||||||||||||||||||||||||||||
| top | shows currently running processes - do not leave this running for more than 30sec (ctrl-c) | ||||||||||||||||||||||||||||
| ps | show the names of all running processes | ||||||||||||||||||||||||||||
| mkdir dir_name | create a sub-directory of the current directory | ||||||||||||||||||||||||||||
| rmdir dir_name | remove a directory. You must remove files in the directory first. | ||||||||||||||||||||||||||||
| cp source dest | copy a file or directory from source to dest | ||||||||||||||||||||||||||||
| rm file_name | remove a file (permanent!) | ||||||||||||||||||||||||||||
| chmod xxx file_name | change the file permissions:
Three numbers indicate the permissions for the owner, the group and the world.
|

