tar zcf oblog.tar.gz *
Get RedHat release:
cat /etc/redhat-releaseGet the processor information:
cat /proc/cpuinfoGet memory information:
cat /proc/meminfoDetermine if an machine is 32bit or 64bit:
uname -a
64 bit:
Linux hostname 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:58:43 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
32 bit:
uname -a
Linux hostname 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux
What is LISTING on a specific port:
netstat -a | grep {PORT_NUMBER}or
lsof -i tcp:{PORT_NUMBER}ssh to another host without a password:
#Generate a key pair
cd $HOME/.ssh/
ssh-keygen -t rsa#copy the key pair to the server from which you want to log in:
cat id_rsa.pub | ssh host 'cat>>.ssh/authorized_keys'What is the biggest file in a directory:
du --max-depth=1 /home/ | sort -n -rSize of multiple directories
du -sH *

![Validate my Atom 1.0 feed [Valid Atom 1.0]](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwsk0jkCpg60orkOvHQLaU5Kfnb72Q4Fv59o0rzOSTRknWzbGrBmh31ZjGOZdIt4C_wLVtBkWfFwG5eMfJQQ1E7MlTWYYZhWtFG6ndJemCWSu5DypAo_UP6u1Y20xCR_N-ksYP5OzvrUkE/s400/valid-atom.png)
No comments:
Post a Comment
comment