wiki:CheatSheet

Version 1 (modified by Mikael Brandström Durling, 10 years ago) (diff)

--

Unix Cheat Sheet

To log in to the grid, you need to use PuTTY if you use a PC, or, in the case of a mac, you can log in from the terminal.

Loggin in to other machines with SSH

The ssh command can be used to log in to other machines, or from a mac to the grid:

$ ssh usernam@host

List files

To list the files in the current directory:

$ ls

To get more information about every file, do

$ ls -l 

To get information about a specific file or directory (you could add -l too)

$ ls filename

Change working directory

$ cd path

where path is the directory you want to change to, eg

$ cd /proj/my-project

To print the current working directory use pwd.

There are two "special directories": . and ... The first corresponds to the current directory, the second corresponds to the directory above the current directory.

Finally,

$ cd

without any arguments will return you to your home directory.