Saturday, June 20, 2009

Linux helpful commands

List of processes:
Solaris stats: prstat
Redhat stats: top


COMMON:
more /proc/version --- To see which version of linux
cat /proc/cpuinfo
cat /proc/meminfo

Creating symbolic link (shortcut in *unix) :
ln -s file_name shortcutname

Placing java in your path:
create link to the version of java into /usr/bin

Linux Runlevels:
who -r (gives run level of the system)
vi \etc\inittab (shows you the runlevel system is starting)

cd \etc\rc5.d (start up scripts for run level 5. K's represent donot start. S's represent start)
cd \etc\rc3.d (start up scripts for run level 5. K's represent donot start. S's represent start)
mv K36mysqld S36mysqld

ln -s ../init.d/jboss S36Jboss
mv S36Jboss K36Jboss
rm K36Jboss

WGET: [Connect to internet and download a file]

wget http://download_file_url

No comments: