Difference between revisions of "Linux"

From New IAC Wiki
Jump to navigation Jump to search
Line 25: Line 25:
 
* echo $SHELL
 
* echo $SHELL
 
* /bin/bash --version
 
* /bin/bash --version
 +
  
 
To untar file
 
To untar file
 
* tar -zxvf geant4.8.0.p01.tar.gz
 
* tar -zxvf geant4.8.0.p01.tar.gz

Revision as of 20:16, 13 September 2011

go back


to remove non-empty directory

  • rm -rf <directory name>


to check hard drive partition:

  • fdisk -l
  • parted /dev/sda print


available memory in megabytes

  • free -m


  • convert -density 300 aluminum-44MeV.pdf aluminum-44MeV.png


Create CD-ROM ISO image with dd command:

  • dd if=/dev/cdrom of=/tmp/cdimg1.iso


Check Shell Type Currently Use

  • echo $SHELL
  • /bin/bash --version


To untar file

  • tar -zxvf geant4.8.0.p01.tar.gz