www.javadevhome.com

Google
   

LINUX

Basic   Commands
 
list directory :

show directory size:
copy file/directory :
move file/directory :
create directory :
link file :
remove file/directory/link :
make executable to all :
change owner :
help :
process list :


kill immedialtely :
unzip :

free disk :
free memory :
version libc :
kernel version :


system info :
environment parameters :
shutdown :
mount CD-ROM :
unmount CD-ROM :
directory list CD-ROM :
find file :


grep :


file info :
read core error :
see screen of :
networks :

listen a port :
add user :
add group :
change password :
checksum 128 :
checksum 160 :
tunnel :
route :
free memory :
redirect error to output :
X client under desktop :
root scheduled tasks :
root crontab :
bios awake/boot :
  ls -lrt
  ll
  du -hcs *
  cp fileName
  mv fileName
  mkdir dirName
  ln -s toFile(Source) fromFile(Dest)
  rm fileName
  chmod a+x fileName
  chown userName:groupName fileName
  man cmdName
  ps -fpu username
  ps -fe | grep java
  ps -eo pid,ppid,command
  kill -9 processID
  unzip source.zip -d destDir
  gunzip fname.gz
  fd
  /usr/sbin/swapinfo
  ls –l /lib/libc*
  uname -a
  ls /boot
  rpm -q kernel
  uname
  env
  shutdown -h now
  mount /dev/cdrom
  umount /dev/cdrom
  ls /mnt/cdrom
  find dirPath -name fileName
  find . -name '*.jar' -exec
     jar -tvf '{}' \;|grep ClassName*
  grep -l pattern *.log
  grep -lr "char pattern" *.txt
  grep -r -C 0 "char pattern" *
  file fileName
  gdb executeFileName coreFileName
  export DISPLAY=85.123.11.131:0.0
  netstat -nr
  ifconfig
  netstat -a|grep 8005
  useradd
  groupadd
  passwd userName
  md5sum
  sha1sum
  ssh userName@hostName -L 8022:127.0.0.1:8080
  traceroute
  /usr/sbin/swapinfo
  wibble > /dev/null 2>&1
  Xnest :dispNum -query XserverIP
  gksu gnome-schedule
  sudo crontab -e
  sudo sh -c "echo `date '+%s' -d '+4 minutes'` > /sys/class/rtc/rtc0/wakealarm"
 
 
Important Files
 
/etc/*
/etc/rc.d/init.d
/etc/inittab
/etc/crontab
/etc/profile
/etc/hosts
/etc/logins
/etc/sysconfig/network-scripts/ifcfg-eth0
 
 
 
 
 
Script   Variables
 
  $$ :
  $? :
  $0 :
  $1 :
  $n :
  $* :
  $# :
  The process PID executing the shell
  Exit status variable
  The command you used to call a program
  The first argument on the command line
  The nth argument on the command line
  All the arguments on the command line
  The number of command line arguments
 
 
I/O   Redirection
 
Std In :
Std Out :
Std Err :
  0
  1
  2
 
 
unix Commands
linux Commands
Common Linux Commands
IBM Linux DeveloperWoks
Advanced Bash-Scripting Guide
linux file system layout
introduction to linux
Shell Scripting