2)
locate -- locate a file containing
some expression
Example:
locate games
3)
grep -- print lines matching a
pattern
Example:
locate games|grep nfs
4)
find -- search for files in a
directory hierarchy
Example:
find . -name filename -print
5)
ps -- report process
status
Examples:
ps; ps -aux
6)
top -- display Linux
tasks
7)
kill,
killall -- kills a
process
Examples:
kill -9 1290; killall -9 mplayer
Here -9 is
an option to kill a process completely. 1290 is a process ID (PID).
8)
tar -- compress/uncompress
files/directories
Examples:
tar -xvf file.tar -- uncompress a file 'file.tar'
tar -xzvf file.tar.gz -- uncompress a file
'file.tar.gz'
tar
-xjvf file.tar.bz2 -- uncompress a file 'ffile.tar.bz2'
tar -cvf
file.tar file -- compress the file 'file' to 'file.tar'
tar
-czvf file.tar.gz file -- compress the fille 'file' to file.tar.gz
tar
-cjvf file.tar.bz2 file -- compress the fiile 'file' to file.tar.bz2
9)
file -- determine file
type
Some More
fundaes: for cool dudes
1) How to open
graphical applications from other computer?
Suppose you are sitting on comp
'A' with ip 10.8.1.82. You want to open an graphical application on comp 'B'
with ip 10.8.1.22. Do the following:
a) type
"xhost +" on comp 'A'
b) login to
comp 'B' via 'ssh' or 'telnet'
c) type
"export DISPLAY=10.8.1.82:0.0" on command prompt of comp 'B'
d) open the
application. e.g. 'gftp'
2) Use
<TAB> for the command
completion
3) Don’t waste time and energy
retyping commands at the prompt. Instead, use the ! option. To automatically
re-display the last command you typed at the prompt, type:
!! and press enter. Press again
to invoke the command. You can also automatically re-display a command you typed
earlier by using the
! and the
first few letters
of the command.
Ex: At the Linux prompt
you had typed the command clear, followed by the command pico, followed by the
command ftp. In order to re-display the clear command you type: !cl and press
enter. In order to re-display the last command you typed, simply type: !! . Try
it out. You’ll find this a time saver when dealing with long commands.
Especially commands like tar!
4) You can also use
reverse
search for
retyping commands. e.g. type
"Ctrl+r", and then type few letters of
command. It will display the command.
Common Softwares in Linux
Some
common softwares you will need:
1) gaim -- Instant Messenger like yahoo and msn
messenger.
2) mplayer -- Movie Player
like Windows Media Player in Windows.
3) xmms -- Play Songs like winamp in
Windows.
4) openoffice -- Run Office
Application like officexp, office2k3 in Windows.
5) mozilla -- To browse internet like Internet
Explorer in Windows.
6) gftp -- for
transfering files.
7) gimp -- for
creating/editing pictures.
See the complete Linux Windows Equivalence Table here.