Xterm Commands

  • w [users logged in]
  • su [become superuser or change user]
  • ps -ax [show all running processes]
  • vi [editor]
  • search for files
    • find / | grep
    • whereis
    • locate
  • file management
    • cp [copy]
    • mv [move]
    • mkdir
    • rm [delete]
  • dmesg [startup messages]
  • ping
  • rpm
    • rpm -ivh ftp://….. [install]
    • rpm -qa | grep [search]
    • [remove]
    • [update]

 


Compress Files -> tar cvf dir.tar dir
Compress more -> bzip dir.tar
Uncompress Files -> tar xvfz dir.tar.gz


Optimising Linux

  • Filesystem  [noatime with either mount or chattr eg chattr -R +A /var/spool/ ]
    • The ext3 file system, by journaling all metadata changes, can magnify the effect of atime changes significantly. You can mount a file system with the noatime flag in order to disable atime updates. While this is not the only source of metadata updates, on many systems, particularly highly-accessed servers with lots of accessed files, atime updates can be responsible for the majority of metadata updates, and on these systems, turning off atime updates may noticeably reduce latency and increase throughput. [http://www.redhat.com/support/wpapers/redhat/ext3/tuning.html]

 


If you have a look at ‘~/.bashrc’ and ‘/etc/profile.d/alias.sh’, you’ll see that there are already some aliases defined.


 

 Linux is a registered trademark of Linus Torvalds.
All other trademarks and copyrights are the property of their respective owners.