Linux commands
unzip a tar.gz filegzip -d httpd.tar.gz
untar a tar.gz2 file
tar -xjvf php.5.1.2.tar.bz2
untar a tar.gz file
tar -zxvf php.5.1.2.tar.gz
login as super user:
sudo su
install a package in debian Linux:
apt-get install gcc
search a package:
apt-cache search <patern>
updagte all:
apt-get update
chmod with group name and permission name.
chmod o+w file_name: adding write permission for others
chmod g+w file_name: adding write permission for group
chmod u+w file_name: adding write permission for user/owner
installing the kernel headers:
apt-get install linux-headers-2.6.12-9-386
copying file to other machine
scp <file_name> <user_id>@<ip_address>:<user_home>/dir
Note: this need ssh get installed.
Installing a debian package
dpkg -i skype.deb
list selected columns by formatting the output with awk
eg: to List only the 1st and 3rd column of ls -al output...
ls -al | awk '{print $1 $3}'
scan disk with FAT32 file system
fsck.vfat /dev/sda5
format disk
mkfs.vfat /dev/sda5 format disk.
format the output of 'top' command..
-press f to go to interactive commands.
-press W to write the current settings to a config file.
now, top will output according to your last written settings.
writing the output of top command to a file..
top -b > top_output.stats
0 Comments:
Post a Comment
<< Home