잊지 않겠습니다.

tar 로 묶고 풀기

  • tar 파일로 묶기 :  tar cvf sample.tar /abc : 라고하면 abc디렉토리 및에 파일들이 sample.tar 라는 묶을파일로 묶인다.
  • tar 파일 풀기 :  tar xvf sample.tar : 하면 파일이 풀린다.

 

gzip 압축고 풀기

gzip으로 압축하기 : gzip sample.tar 라고하면 sample.tar.gz 라는 압축파일이 만들어진다.
tar zxvf sample.tar.gz 라고 하면 원래 모양대로 앞축 및 묶음파일을 동시게 해결해준다.

bzip2 로 압축하기

gz압축파일을 많이 대체해 나가고 있다, 압축율이 bzip은 gz에 비하여 뛰어납니다.
bzip2 abcd.tar ====> 압축후 abcd.tar.bz2 라는 파일이 생성됩니다.

  • bz2 풀기 : bzip2 -d abcd.tar.bz2
  • tar 풀기 : tar xvf abcd.tar 하면된다.

 

zip : 으로 압축 하기 및 unzip으로 압축풀기

tar 로 묶는 과정이 필요없다.
사용법 : zip [옵션] [생성파일명*.zip] [압축할파일또는디렉토리]
내용보기 : zipinfo 파일명

마운트 시키기 : mount 와 umount

  • 플로피 마운트하기   : mount /dev/fd0 /mnt/floppy
  • 시디롬 마운트하기   : mount -t iso9660 /dev/cdrom /mnt/cdrom
  • msdos 마운트하기   : mount -t msdos /dev/hda1 /mnt/msdos
  • win 98 마운트하기  : mount -t vfat /dev/hda1 /mnt/win98
  • nt파티션 마운트하기 : mount -t ntfs /dev/hda1 /mnt/windows
  • 리눅스 마운트하기   : mount -t ext2 /dev/hda3 /mnt/linux
  • iso이미지 마운트하기 : mount -o loop xxx.iso /mnt/iso 
Posted by Y2K
,