Alex linux 1

From Teknologisk videncenter
Jump to: navigation, search

Linux 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