UNIX commands

From Teknologisk videncenter
Revision as of 13:11, 12 February 2009 by Heth (talk | contribs) (New page: Category:LinuxCategory:UNIX __TOC__ = Basic UNIX/Linux Commands = == On line help == {| border=1 |- bgcolor=grey |+On-line help commands ! '''Command''' || '''Explanation''' || ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Basic UNIX/Linux Commands

On line help

On-line help commands
Command Explanation Example
man Se en kommandos manualside. Bash$ man find
info Generel hjælp eller hjælp til enkelte kommandoer Bash$ info
apropos Vis kommandoer som minder om en kendt Bash$ apropos chmod
help Viser bash shellens indbyggede kommandoer Bash$ help

File handling

File handling commands
Command Explanation Example
cp CoPy - Kopier fil(er) Bash$ cp filA filB
mv MoVe – Flyt eller omdøb en fil Bash$ mv filB filC
ln LiNk – Opret en link til en fil eller bibliotek Bash$ ln filC filD
rm ReMove – Slet filer og biblioteker Bash$ rm filA filB
mkdir Opret bibliotek Bash$ mkdir heth
rmdir Slet bibliotek. Skal være tomt Bash$ rmdir heth

Searching for Files and storage

File search and storage commands
Command Explanation Example
pwd Print Working Directory - Vis nuværende arbejdsbibliotek Bash$ pwd
find Søg efter filer og kataloger Bash$ find / –name filA
du Disk Usage – Viser forbrug af diskplads Bash$ du /home/heth
df Disk Free - Viser totalt forbrug/plads på diske Bash$ df
cd Change Directory – skift arbejdsbibliotek Bash$ cd /home/heth