Difference between revisions of "Nohvok Linux 1"
From Teknologisk videncenter
(6 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
=== Ls kommandoen === | === Ls kommandoen === | ||
− | + | Viser filer i ''dir'' i en Windows kommandoprompt | |
=== Cat kommando === | === Cat kommando === | ||
Line 42: | Line 42: | ||
wc - Word Count | wc - Word Count | ||
bc - Board Calculater | bc - Board Calculater | ||
− | cd - | + | cd - Change Directory |
− | grep - | + | grep - General Regular Expression Parser |
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 | ||
− | |||
=== Syntax === | === Syntax === | ||
Line 54: | Line 57: | ||
>> - | >> - | ||
− | + | == == | |
− | + | Skrevet af Morten Fallesen | |
− | |||
− | |||
− | |||
[[Category:Linux]] [[Category:H2]] | [[Category:Linux]] [[Category:H2]] |
Latest revision as of 09:57, 12 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
Viser filer i 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 - General Regular Expression Parser pwd - Print working directory chmod - Change Mode su - Switch User uid - user ID chown - Change Owner chgrp - Change Group
Syntax
| - Pipe Line > - >> -
Skrevet af Morten Fallesen