Thursday, April 5, 2007

Some simple Linux commands

I am kind of person can't live without Windows. In short, I need AutoCAD almost everyday. But we only have a Windows version, and it is not cheap. When I run simulation codes, it seems to me that Linux is a better platform. So I go with dual boot.
The following are commands I use in Linux:

  • tar zcvf ***.tar.gz *** --to zip a folder or file with name ***
  • tar zxvf ***.tar.gz --to unzip a folder or file
  • ls -l --list contents
  • pwd --print directory
  • ps -aux --list processes
  • kill -9 *** --to kill a process name ***
  • sudo yum -y update --to update the whole system (I do this before I go home)
  • mv --rename or move file/folder
  • rm --remove file (to remove folder use rm -R)
  • man --this is a good friend

No comments: