Vpjb8 linux 1

From Teknologisk videncenter
Revision as of 12:50, 9 February 2009 by Vpjb8 (talk | contribs) (New page: == Commands == === find Command === The command '''find''' find files on the filesystem category:LinuxCategory:H2 fx: find / # List all files find /etc # List fil...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Commands

find Command

The command find find files on the filesystem

fx:
find /          # List all files
find /etc       # List files under the /etc directory
find / | wc -l  # List all files, but dont show them on the screen the "|"
                # is a pipe which send the output from the find command to
                # the wc command as input. wc wordcount' The -l
                # means count lines

ls command

List files in like dir in a Windows command prompt

cat command

the cat command show the content of a file

cat /etc/passwd

Important files

The /etc directory

The passwd file

The passwd file contains all usernames

Try cat /etc/passwd