Skip to content

Command-line intro

Objectives

  • We'll use the commands and investigate the Bianca environment

Warning

  • We assume that you have already covered the Command-line material and tested on Rackham

### Navigation and file management

  1. pwd   present directory
  2. ls  list content
  3. cd  change directory
  4. mkdir  make directory
  5. cp  copy
  6. scp  securely remotely copy
  7. mv  move
  8. rm  remove
  9. rmdir  remove empty directory

Read files and change file properties

  1. cat  print content on screen
  2. head  print first part
  3. tail  print last part
  4. less  browse content
  5. tar  compress or extract file
  6. chmod  change file permissions
  7. man  info about a command

Type along

  • Check the path to your $HOME folder
$ cd ~
$ pwd
$ pwd -P
Answer
/home/$USER
/castor/project/home/bjornc
  • Check the path to your projects
$ cd /proj
$ ls
$ pwd
$ pwd -P
Answer
/proj
/proj
$ cd /sensXXX
$ pwd
$ pwd -P
Answer
/proj/sensXXX
/castor/project/proj