Total, Over 6 years of extensive experience in SCM domain having depth knowledge of Configuration Management, Build Management, Packaging, Release Management and Application Maintenance.

Pages home > My UNIX / Linux Command Collections

My UNIX / Linux Command Collections

Basic Administration Commands

  1. su: Acquiring Superuser Status
  2. su -  <username>
  3. wall
  4. ulimit
  5. passwd
  6. passwd <username>
  7. groupadd –g 241 dba
  8. useradd –u 210 –g dba –c “The RDBS” –d/home/oracle –s /bin/ksh –m oracle
  9. usermod
  10. userdel
  11. df : Reporting Free Space (Disk Free)
  12. df –k / /usr
  13. df –h / /usr
  14. du  /home/sales/tml
  15. du –s /home/*
  16. tar –cvf /dev/rdsk/f0add /home/sales/SQl/*.sql
  17. cpio

Send Email a file content using sendmail
mailx -s "My File" rajesh@scmgalaxy.com < file_name

Change File Permissions Recursively
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
find . -name Configuration.php -exec chmod 666 {} \;
find . -type f -exec chmod 600 {} \;
find . -type d -exec chmod 700 {} \;

To Start / Stop iptables service
/sbin/service iptables stop

To Trace the Process id status
strace -p pid - RHEL
truss -p pid - Sloaris

Display file or file system status such as Access, Modify,Change, users and more
stat <fileName> unix Command

gzip / Gunzip - Compress / decompress  or expands compressed files.
gzip file.txt        - To Compress One file   
gzip -r documents_folder    - To Compress Folder
gunzip file.txt.gz        - To Decompress 

, , ,

scripting

Last updated 18 hours ago by Rajesh Kumar