|
Command
|
Purpose
|
Description
|
<Ctrl><Alt> F1
[Press and hold <Ctrl>, <Alt> and F1 together]
|
Switchs to a command line fast.
|
Use this key combination to switch to a virtual terminal in Linux. To switch
back to the GUI press F7. F1 - F6 will take you to a text
terminal, F7-F9 will take you to a GUI terminal.
|
|
Tab Key
|
At the prompt use the Tab key to complete commands
|
E.g. You have a command 'evolution' type: evolu (press Tab) and the shell will
complete it. If there are more than one matches press Tab again to get a list
of all the matches.
|
|
locate filename
|
Searches for filename on your disk.
|
This command allows you to search for a file on your disk. Run 'updatedb'
(Without the quotes) as root to recognize new files and their location.
|
|
history
|
See all commands typed at the console.
|
Use 'history | more' (Without the quotes) to pause after every screenfull of
information. Use 'history -c' (Without the quotes) to clear the command
history.
|
|
dmesg
|
Shows the messages generated when the computer was booting up.
|
Use this command to view the messages generated while booting up. It lets you
see alot of sometimes helpful info about your computer
|
|
ps -A
|
Shows a list of all running processes.
|
Shows a list of all running processes.
|
|
kill pid
|
Kill the process with pid as the Process ID
|
pid is the Process ID, which can be found using the ps command. e.g. if you
want to kill a process with a process ID of 1000 use the command: kill 1000
|
|
<Ctrl> R
|
Search the command history backwards
|
Press <Ctrl> R and type the first few characters of the command to
search for. When the command you are searching for shows up press enter to
execute it.
|
|
<Ctrl> L
|
Clear the screen
|
Clear you screen using this key combination instead of using 'clear'.
|
|
<Crtl><Alt> Backspace
|
Restarts X
|
This command kills X. If your sets up inittab the right way, then X can be
set up to restart whenever it dies, so if that's what's going on, then
ctrl-alt-backspace will restart X.
|
|
finger @kernel.org
|
Gets Linux kernel version list from kernel.org
|
Gets Linux kernel version list from kernel.org
|
|
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
|
Cut off all ICMP ECHO requests
|
Cut off all ICMP ECHO requests without messing with iptables. You have to
issue this command everytime your kernel is rebooted, putting this line into
/etc/rc.local (might be other file if it's not RH) file will automaticly make
it start everytime the machine is rebooted.
|
|
cat >> filename
|
Append data to the end of filename
|
When this command is run it will append the data entered at the console to
the end of the file: filename. To end the data entry press <Ctrl> D
|
|
who | wc -l
|
Tells you how many users are logged in to the system
|
Tells you how many users are logged in to the system
|
|
!letter
|
Recalls the last command starting with that letter
|
Recalls the last command starting with that letter. e.g. !w will run the
last command starting with a w.
|
|
rpm -qR -packagename
|
List all packages an installed package depends on
|
Lists all the packages which an installed package depends on. If you want to
check on a package that hasn't been installed, use
rpm -qpR -fullpackagename
|