Nohvok Linux 1

From Teknologisk videncenter
Revision as of 16:44, 10 February 2009 by Nohvok (talk | contribs)
Jump to: navigation, search

Kommandoer

Finde Kommando

Kommandoen finde finde filer på filsystemet

 FX: 
 find /          # Finder alle filer 
 find /etc       # Finder filer under /etc bibliotek 
 find / | wc-l   # Finder alle filer, men viser dem ikke på skærmen i "|" 
                 # wc kommando betyder: wc word count '-l 
                 # Altså tæller linjer.

Ls kommandoen

Liste filer i gerne dir i en Windows kommandoprompt

Cat kommando

Den kat kommando viser indholdet af en fil

 cat /etc/passwd 

Vigtige filer

/Etc mappe

Det passwd file

Den passwd fil indeholder alle brugernavne

 Prøv cat /etc/passwd 

Forkortelser & Syntax

Forkortelser

ls    - List
cp    - Copy
man   - Manual
stder - Standard Error
wc    - Word Count
bc    - Board Calculater
cd    -
grep  -
pwd   - Print working directory
chmod - Change Mode


Syntax

|     - Pipe Line
>     -
>>    -
::
-rw-r--r--
1 - = Fil Type
2 - = O