For any computational biologist linux/unix is the beautiful operating system for data analysis. I am discussing here few basic commands for file handling.
LINUX COMMANDS:
LINUX COMMANDS:
1. Commands for
bundling and compressing the files
tar -cvf files.tr file1 file2 file3 (File names, Output: files.tar)
gzip files.tr (For compressing, Output:
files.tar.gz)
For
supercompression
bzip2 files.tar (For super compression Output:
files.tar.bz2)
bzip2 file (Output: file.bz2)
2. Unzipping
tar - zxvf files.tar.gz (Direct unzipping, Output: you will
get all files)
gunzip files.tzr.gz (First step: unzip the gz file, Output:
files.tr)
tar -xvf files.tr (Second step: untar, Output: all
files)
For supercompressed
files
bunzip2 files.tar.bz2 (Output: files.tar, tar -xvf for open the bundle)
tar -xjvf files.tar.bz2 (Direct, Output: all files)
No comments:
Post a Comment