High Performance Computing
High End Visualization
About CCR Contact Us Events Facilities Faculty Project Highlights History Job Opportunities News Partners Staff
Bioinformatics Consulting Services Grid Computing Visualization
Accounts Application Software Consulting Getting Started Hardware Resources Frequently Asked Questions Machine Status MyStats Overview Request Help Storage Resources Training/Courses Web Portals
Access Grid Training Outreach
Events Logos Media News Photo Album Videos
Contact Information Directions
  Dashboard > CCR Web > Getting Started > Unix Commands
Log In   View a printable version of the current page.
Unix Commands

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
  • 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
  • More Information:

Center for Computational Research - University at Buffalo - State University of New York