Trillex linux 1

From Teknologisk videncenter
Revision as of 11:52, 9 February 2009 by Trillex (talk | contribs)
Jump to: navigation, search

Commands

find command

The command find find files on the filesystem.

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

ls Command

List files just like dir does it in a Windows command prompt

cat Command

The cat command shows the content of a file

   cat /etc/passwd

Important Files

The /etc Directory

passwd File

The passwd file contains all user names as well as their home directory and the shell they use.