2,187
edits
m (→SCP: Another formatting fix) |
(Added "Terminal Colours") |
||
Line 31: | Line 31: | ||
! Syntax !! Action / Description | ! Syntax !! Action / Description | ||
|- | |- | ||
|<code> ls -l </code> || List directory contents (<code>-l</code> long format) - [ | |<code> ls -l </code> || List directory contents (<code>-l</code> long format) - see [[#Terminal Colours|Terminal Colours] | ||
|- | |- | ||
|<code> df -h </code> || Disk space summary | |<code> df -h </code> || Disk space summary | ||
Line 79: | Line 79: | ||
|<code> tail <file> </code> || Displays the last 10 lines of a file, <code>-f</code> follows any updates (eg to monitor a log file) | |<code> tail <file> </code> || Displays the last 10 lines of a file, <code>-f</code> follows any updates (eg to monitor a log file) | ||
|} | |} | ||
== Terminal Colours == | |||
The colourisation of files and folders as seen through a terminal session (eg PuTTY) normally have the following meanings... | |||
{|class="vwikitable" | |||
|- | |||
! Type !! Description | |||
|- | |||
|style='background:black;color:white;font-family:courier;'| FILE || Normal file | |||
|- | |||
|style='background:#FF5555;color:white;font-family:courier;'| MISSING || Missing file | |||
|- | |||
|style='background:black;color:#5555FF;font-family:courier;'| DIR || Directory | |||
|- | |||
|style='background:black;color:#55FF55;font-family:courier;'| EXEC || Executable file | |||
|- | |||
|style='background:black;color:#55FFFF;font-family:courier;'| LINK || Symbolic link | |||
|- | |||
|style='background:#FF5555;color:white;font-family:courier;'| ORPHAN || Orphaned symbolic link | |||
|- | |||
|style='background:black;color:#FFFF55;font-family:courier;'| FIFO || Named pipe | |||
|- | |||
|style='background:black;color:#FF55FF;font-family:courier;'| SOCK || Socket | |||
|- | |||
|style='background:black;color:#FFFF55;font-family:courier;'| BLK || Block device driver | |||
|- | |||
|style='background:black;color:#FFFF55;font-family:courier;'| CHR || Character device driver | |||
|- | |||
|style='background:black;color:#FC391F;font-family:courier;'| ARC || Archive / Compressed | |||
|- | |||
|style='background:black;color:#FF55FF;font-family:courier;'| MEDIA || Media files (image, video etc) | |||
|} | |||
These colours are derived from the [http://www.ecma-international.org/publications/standards/Ecma-048.htm ISO 6429] standard for coded character sets. The above info is derived from the following sources... | |||
* http://communities.vmware.com/message/678302#678302 | |||
* http://www.wikipedia.org/wiki/ANSI_escape_code | |||
== SCP == | == SCP == |