zip: nahar@mf01:~$ gzip df_prod_flexdoc_nahar_201001012.dmp
zip: nahar@mf01:~$ gunzip df_prod_flexdoc_nahar_20101012.zip
Q: How to zip folder?
zip -9 -r
Q: How to copy in current directory from Remote server?
scp remote_server_host_name:file_name.ext
nahar@debian:~$ scp remote_server_host_name:file_name.ext /home/nahar
Another example:
nahar@debian:~$ scp ms0001.thrp.net:/u/nahar/ds0003-ndstate-metadata1-20101104.dmp /home/nahar .
Q: How to find IP?
nahar@debian:~$ su
Password:
debian:/home/nahar# ifconfig
Q: How to change pass of oracle server?
passwd
Q: How to calculate file size?
du -sh
du -sh *.dmp
Q: How to move, copy file from one folder to another?
mv filename foldername/
or
cp old_file_name directory/new_file_name
Q: How to make unzip and untar folder?
tar -xvzf folder_name.tar.gz
Example-1:
file: tar -cvf 1_sylhet_boishak07_gram_picasa.tar sylhet_boishak07_gram_picasa
gzip 1_sylhet_boishak07_gram_picasa.tar
Example-2:
nahar@debian:~$ unzip oracle-script.zip
Archive: oracle-script.zip
replace 122.sh? [y]es, [n]o, [A]ll, [N]one, [r]ename: oracle
error: invalid response [o]
replace 122.sh? [y]es, [n]o, [A]ll, [N]one, [r]ename: r
new name: oracle
inflating: oracle
nahar@debian:~$
Another way -
1. To make ur that folder tar: tar -cvf new_folder_name.tar folder_name
2. To make your folder zip: gzip folder_name.tar"