CCR's computing resources are primarily Linux based and therefore using them requires a basic
understanding of the Unix operating system. Some basic commands are provided below.
Basic Unix Commands
- Show pathname of current directory: pwd
- List files: ls
- Make a directory: mkdir directory-name
- Change directory: cd directory-name
- Change directory back to home directory: cd
- Copy a file: cp old-filename new-filename
- View a file:
- cat filename
- more filename
- less filename
- Edit a file:
- emacs filename
- vi filename
- Delete a file: rm filename
- Delete a directory (recursively): rm -R directory-name
- All files and subdirectories are deleted
- Delete a directory (recursively): rm -R directory-name
- Move a file: mv old-filename new-filename
- Change permissions:
- Arguments to chmod command: ugo+-rwx
- where ugo are user, group and other; rwx are read, write and execute
- Add execute permission for yourself: chmod u+x filename
- Remove read, write and execute for group and other from a directory its contents:
chmod -R go-rwx directory-name
- Arguments to chmod command: ugo+-rwx
- More Information:
