Wednesday, September 30, 2009

Most usefull Linux command

Today i write most use-full linux command. I think this is most important for new linux users.

1. Copy command

$cp -irf source directory target directory

2. size

$du -sh direcotry name

3. Remove the diretory & subdirectory

$rm -irf directoryname

4. Move the files from one directory to another directory

mv -irf sourcedirectory targetdirectory

5. Change ownership on directory or subdirectory

$chown -R user:group directory

6. Find file in the linux system

$find -name eg: find /data1/PROD/ -name apichecb.pls

1. directory name where we want to search the file.

2. file name is which we want to search

7. How to check "File" type in linux

$file filename

8. how to check linux version
$uname -a

9. how to check group information in the linux

$cat /etc/group

10. how to install RPM package

#rpm -ivch packagename

i stand for install

11. change to usb filesystem type from ntfs to ext3

#mke2fs -j /dev/sdb1
then mount the usbfirst check the usb filesystem type

#fdisk -l then use the below command to mount

#mount /dev/sdb1 /mnt/usb

thanks for all



No comments:

Post a Comment