Difference between revisions of "Nohvok Linux 1"
From Teknologisk videncenter
Line 42: | Line 42: | ||
wc - Word Count | wc - Word Count | ||
bc - Board Calculater | bc - Board Calculater | ||
− | cd - | + | cd - Change Directory |
grep - | grep - | ||
pwd - Print working directory | pwd - Print working directory | ||
chmod - Change Mode | chmod - Change Mode | ||
+ | su - Switch User | ||
+ | uid - user ID | ||
+ | chown - Change Owner | ||
+ | chgrp - Change Group | ||
Line 54: | Line 58: | ||
>> - | >> - | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
[[Category:Linux]] [[Category:H2]] | [[Category:Linux]] [[Category:H2]] |
Revision as of 15:53, 10 February 2009
Contents
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 - Change Directory grep - pwd - Print working directory chmod - Change Mode su - Switch User uid - user ID chown - Change Owner chgrp - Change Group
Syntax
| - Pipe Line > - >> -