Difference between revisions of "Linux"

From New IAC Wiki
Jump to navigation Jump to search
Line 2: Line 2:
  
  
to remove non-empty directory
+
* rm -r name  //remove directory
* rm -rf <directory name>
+
* fdisk -l //check drive partition
 
+
* parted /dev/sda print //check drive partition
 
+
* free -m //check available memory in Mb
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   
 
* convert -density 300 aluminum-44MeV.pdf aluminum-44MeV.png   
 
+
* dd if=/dev/cdrom of=/tmp/cdimg1.iso //Create CD-ROM ISO image
 
+
* echo $SHELL  //Check Shell Type Currently Use
Create CD-ROM ISO image with dd command:
+
* /bin/bash --version //Check Shell Type Currently Use
* dd if=/dev/cdrom of=/tmp/cdimg1.iso
 
 
 
 
 
Check Shell Type Currently Use
 
* echo $SHELL
 
* /bin/bash --version
 
 
 
 
 
To untar file
 
 
* tar -xvf geant4.8.0.p01.tar
 
* tar -xvf geant4.8.0.p01.tar
 
* tar -zxvf geant4.8.0.p01.tar.gz
 
* tar -zxvf geant4.8.0.p01.tar.gz
 
* tar -zxvf geant4.8.0.p01.tgz
 
* tar -zxvf geant4.8.0.p01.tgz
 
+
* cntr-z  //to stop process
to run process in background
+
** bg  //to run stopped process in background mode
* cntr-z
+
** fg //to run stopped process in frontground mode
* bg
 
* fg
 

Revision as of 21:28, 14 September 2011

go back


  • rm -r name //remove directory
  • fdisk -l //check drive partition
  • parted /dev/sda print //check drive partition
  • free -m //check available memory in Mb
  • convert -density 300 aluminum-44MeV.pdf aluminum-44MeV.png
  • dd if=/dev/cdrom of=/tmp/cdimg1.iso //Create CD-ROM ISO image
  • echo $SHELL //Check Shell Type Currently Use
  • /bin/bash --version //Check Shell Type Currently Use
  • tar -xvf geant4.8.0.p01.tar
  • tar -zxvf geant4.8.0.p01.tar.gz
  • tar -zxvf geant4.8.0.p01.tgz
  • cntr-z //to stop process
    • bg //to run stopped process in background mode
    • fg //to run stopped process in frontground mode