Basic Administration Commands
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
shell script, unix, unix command, unix administration
Last updated 18 hours ago by Rajesh Kumar