Post by jamba on Feb 6, 2010 7:03:05 GMT -5
www.mynitor.com/2010/02/05/tiny-linux-command-reference/
ls List files/directories in a directory
cat <filename> Read a file.
cp Copy a file
mv Move a file
rm Delete a file
chmod Changes file access permissions
chown Changes file ownership
grep Looks for patterns in files
ln Create’s “links” between files and directories
wc Word count
find Find files and directories.
locate Locate a file name/directory
file <filename> Guess type of file
touch Create an empty file
od View binary files and data
pwd Print working directory
hostname Print name of localhost
whoami Print login name
id Print user id
date Print or change date on system
time <command> Determine the amount of time it takes for a process to complete
who Check who is logged on the system
last Show users last logged-in
uptime Check system uptime as well as load average details
ps List process run by user
ps auxw List all the process on the system
top Keep listing currently running processes
uname -a Info about your local server
lsmod Show the kernel modules currently loaded
dmesg Print kernel messages
tail Similar to cat, but only reads the end of the file
head Similar to tail, but only reads the top of the file
more Llike cat, but opens the file one screen at a time rather
than all at once
less Like more, but less. (LOL *BURP*)
netstat Shows all current network connections.
ifconfig Display info on the network interfaces
ping Sends test packets to a specified server
nslookup Lookup a host/domain.
dig Similar to nslookup.
sudo You know, sudo.
kill terminate a system process
killall Kill program(s) by name
du Shows disk usage.
free Memory info
man Display the contents of the system manual pages
reboot Reboot the machine.
tar Creating and Extracting .tar files
gzip Compress in gzip
zip Compress in zip
unzip Uncompress a zip file
compress Compress files .Z
uncompress Uncompress .Z files
bzip2 Compress files in bzip2 forma
ls List files/directories in a directory
cat <filename> Read a file.
cp Copy a file
mv Move a file
rm Delete a file
chmod Changes file access permissions
chown Changes file ownership
grep Looks for patterns in files
ln Create’s “links” between files and directories
wc Word count
find Find files and directories.
locate Locate a file name/directory
file <filename> Guess type of file
touch Create an empty file
od View binary files and data
pwd Print working directory
hostname Print name of localhost
whoami Print login name
id Print user id
date Print or change date on system
time <command> Determine the amount of time it takes for a process to complete
who Check who is logged on the system
last Show users last logged-in
uptime Check system uptime as well as load average details
ps List process run by user
ps auxw List all the process on the system
top Keep listing currently running processes
uname -a Info about your local server
lsmod Show the kernel modules currently loaded
dmesg Print kernel messages
tail Similar to cat, but only reads the end of the file
head Similar to tail, but only reads the top of the file
more Llike cat, but opens the file one screen at a time rather
than all at once
less Like more, but less. (LOL *BURP*)
netstat Shows all current network connections.
ifconfig Display info on the network interfaces
ping Sends test packets to a specified server
nslookup Lookup a host/domain.
dig Similar to nslookup.
sudo You know, sudo.
kill terminate a system process
killall Kill program(s) by name
du Shows disk usage.
free Memory info
man Display the contents of the system manual pages
reboot Reboot the machine.
tar Creating and Extracting .tar files
gzip Compress in gzip
zip Compress in zip
unzip Uncompress a zip file
compress Compress files .Z
uncompress Uncompress .Z files
bzip2 Compress files in bzip2 forma