Thursday, 12 July 2012

Linux for you Admin Tips:1

Linux for you Admin Tips:2
Linux for you Admin Tips:3
Linux for you Admin Tips:4
Linux for you Admin Tips:5

1.Back up files current location to remote location.

for example: #ssh avenca 'rm /u01/pthr/UNHCR/RAHRPTS/sqr/*'
#scp /u01/pthr/UNHCR/RAHRPRD/sqr/* avenca:/u01/pthr/UNHCR/RAHRPTS/sqr
#cd /u01/pthr/UNHCR/RAHRPRD/data
#find . -type d | cpio -oc -O /home/psofthr/scripts/dup_data_dir_hr.cpio
#scp /home/psofthr/scripts/dup_data_dir_hr.cpio avenca:/home/psofthr/scripts/

2.Check Cent OS  release info and Check your entire system

#cat /etc/redhat-release
## Output ##
CentOS release 5.8 (Final)
Following needs redhat-lsb package
FSG  lsb_release v2.0 prints certain LSB (Linux Standard Base) and Distributions information.

#lsb_release -a
## Output ##
LSB Version:    :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 5.8 (Final)
Release:        5.8
Codename:       Final

-d, --description
     Display the single line text description of the distribution.

-r, --release
      Display the release number of the distribution
-c, --codename
      Display the codename according to the distribution rel

No comments:

Post a Comment