Difference between revisions of "Trillex linux 1"

From Teknologisk videncenter
Jump to: navigation, search
Line 39: Line 39:
 
The passwd file contains all user names as well as their home directory and the shell they use.
 
The passwd file contains all user names as well as their home directory and the shell they use.
  
=== ifconfig configuration Files ===
+
=== IP Configuration Files ===
 
The configuration file(s) for common network setup is located in '''/etc/sysconfig/network-scripts/'''.  
 
The configuration file(s) for common network setup is located in '''/etc/sysconfig/network-scripts/'''.  
 
It is named according to the network interface number on the computer.  
 
It is named according to the network interface number on the computer.  
  
 
In normal circumstances it'd be called ifcfg.eth0 and upwards.
 
In normal circumstances it'd be called ifcfg.eth0 and upwards.

Revision as of 16:42, 9 February 2009

Commands

logout Command

Does exactly what it says on the tin. Logs out the current user on that terminal.

shutdown Command

Shuts down the computer. When is usually described at the end of this command.

Example:
shutdown now      # Shuts down the computer NOW.

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

Example:
cat /etc/passwd   # Shows the content of the file passwd

whereis Command

Shows the position of certain files and programs.

whereis bash      # Outputs where files named bash are

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.

IP Configuration Files

The configuration file(s) for common network setup is located in /etc/sysconfig/network-scripts/. It is named according to the network interface number on the computer.

In normal circumstances it'd be called ifcfg.eth0 and upwards.