Omit # in file CPU numbers Free RAM
Omit # in file
grep '^[^#]' sc
echo -n "T "
read val
echo -n $val
echo -n "result $((val+10))"
-=-=-=-=--=-=-=-=--=-=-=-=-
CPU numbers
cat /proc/cpuinfo | grep proc | wc -l
fdisk -l - fdisk command can display the partitions and details like file system type
see your DNS server address
less /etc/resolv.conf
-=-=-=-=--=-=-=-=--=-=-=-=-
check your ip address
ip addr show
ifconfig
hostname –i
-=-=-=-=--=-=-=-=--=-=-=-=-
Lsof – List Open Files
-=-=-=-=--=-=-=-=--=-=-=-=-
Free RAM
free –m
-=-=-=-=--=-=-=-=--=-=-=-=-
SCSI/Sata devices
cat /proc/scsi/scsi
-=-=-=-=--=-=-=-=--=-=-=-=-
Show working directory
$ pwdx 12136
12136: /home/saml
=-=-=-=-=-=-=-=-=-=
When you use aptitude to remove a package that you installed with aptitude, any dependencies installed with that package are also removed. Using apt-get as you do above leaves behind the dependencies.
=-=-=-=-=-=-=-=-=-=
Bazaar
Canonical, the commercial company behind Ubuntu. Unlike Subversion and CVS that only support a central repository model, Bazaar also supports distributed version control, giving people the ability to collaborate more efficiently. In particular, Bazaar is designed to maximize the level of community participation in open source projects.
=-=-=-=-=-=-=-=-=-=
Comments
Post a Comment