Difference between revisions of "Cheatsheets"
Line 12: | Line 12: | ||
! scope="col"| Meaning | ! scope="col"| Meaning | ||
|- | |- | ||
− | ! scope="row"| <code>cd</code> | + | ! scope="row"| <code>cd</code> or <code>cd ~</code> |
| change to $HOME directory | | change to $HOME directory | ||
+ | |- | ||
+ | ! scope="row"| <code>cd -</code> or <code>cd -</code> | ||
+ | | change to previous directory location | ||
|- | |- | ||
! scope="row"| <code>ls -ld <dirname></code> | ! scope="row"| <code>ls -ld <dirname></code> | ||
− | | | + | | list details of the named directory |
|- | |- | ||
! scope="row"| <code>~</code> | ! scope="row"| <code>~</code> |
Revision as of 15:30, 2 October 2016
Contents
Introduction
Details of the Introduction to Unix for Bioinformatics and Genomics Analysis (i2u4bga)
Commands dealing with directories
special directories / paths
Command | Meaning |
---|---|
cd or cd ~
|
change to $HOME directory |
cd - or cd -
|
change to previous directory location |
ls -ld <dirname>
|
list details of the named directory |
~
|
Home directory, $HOME also works (absolute) |
/
|
System root directory, not a place to stay in! (absolute) |
/path/to
|
Common placeholder for absolute path to somewhere |
special directories / paths
Symbol(s) | Meaning |
---|---|
. or ./
|
current, present working directory (relative) |
.. or ../
|
Parent directory (relative) |
../../
|
Parent of the parent (relative) |
~
|
Home directory, $HOME also works (absolute) |
/
|
System root directory, not a place to stay in! (absolute) |
/path/to
|
Common placeholder for absolute path to somewhere |