Linux File Archive
Linux File Archive
Task 1 :-
#cd Desktop
#mkdir mydata
#cd mydata
#touch {1..10000}
#cd .. ----> exit from folder
Task 2 :- convert folder into tar file, without this operation we can't apply tools
for compression
#tar -cvf myfile.tar mydata ----> by using this command , mydata convert
into myfile.tar
#du -sh myfile.tar ----> check size of file
______________________________________________________________
[note :- make sure by using this command we can't gain access of data , this
command helps only for view data]
________________________________________________________________
_________________________________________________________________
File Sharing
syntax : -
[note :- make sure if you want to send folder so before folder name -r option is
mandatory , -r recurssivly ]
Example :- #scp -r myfolder 192.168.1.76:/root/Desktop
____________________________________________________________________