zip
is a compression and file packaging utility
zip zipfile file1 file2 ...
zip Nucleique.zip Nucleique/*
adding: Nucleique/2Xseq.fasta (deflated 84%)
adding: Nucleique/3_seq.fasta (deflated 57%)
...
Warning
zip dir.zip dir produce an empty zip file
exercice:
create a compress archive of all files in the Sequence/Proteique dir
unzip - list, test and extract compressed files in a ZIP archive
exercice:
list, test and uncompress the zip archive proteique.zip that you did.
gzip compress files (does not make an archive!)
exercise:
exercise:
uncompress the files in Sequence/Proteique/
GNU ‘tar’ saves many files together into a single tape or disk archive.
as we work on file (not tape) all commands we use have file (-f) option
-c to create an archive
tar -cf archive.tar foo bar Create archive.tar from files foo and bar.
tar -cf foo.tar Nucleique/3_seq.*
usually we add .tar extension to the archive name.
Warning
This archive is not compress
exercise:
after creating an archive we can compress it with gzip
but we can do this 2 operation with tar
use option -z or -j for compress with gzip or bzip2 respectively.
tar -czf my_seq.tar.gz Nucleique/*
tar -cjf my_seq.tar.bz2 Nucleique/*
usually we use double extension tar.gz or tar.bz2 .
sometimes we use .tgz or .tbz
exercise:
To know what an archive contains use the -t option.
tar -tzf archive.tar.gz
tar -tjf archive.tar.bz2
tar -tzf toto.tar.gz
Nucleique/
Nucleique/qn1.gb
Nucleique/qr.fasta
Nucleique/collection_of_colstridium_genomesFASTA.txt
...
To extract an archive use the -x option. To uncompress an archive use -z or -j option for gzip or bzip2 respectively.
tar -xzf archive.tar.gz
tar -xjf archive.tar.bz2
by default the extract is been wher the command is run we can change this using -C dir option.
tar -xjf archive.tar.bz2 -C Foobar
Warning
the dir must exists
F*EX is the dl service at pasteur
register fexsend -I
fexsend -I
F*EX server URL: http://dl.pasteur.fr/
proxy address (hostname:port or empty if none):
Your e-mail address as registered at http://dl.pasteur.fr/: nimort.naoik@pasteur.fr
Your auth-ID for nimort.naoik@pasteur.fr at http://dl.pasteur.fr/: pick_an_id
data written to /pasteur/homes/nnaoik/.fex/id
fexsend file recipient@domain.fr
exercise:
(documentaion: https://projets.pasteur.fr/projects/fex/wiki)