Posts Tagged With: folder

Move files from Folder 2 Levels Deep

Tagged with: , , , , , , , ,

Use this command to move files from folders two level deep to the current folder…


mv */*.* .
1 Comment »

Incremental Backup with tar

Tagged with: , , , , , ,

Make a incremental backup of directory ‘/home/binnyva’


tar -Puf backup.tar /home/binnyva
No Comments »

Zip Command in Linux

Tagged with: , , , ,

Command to create a zip file from a given folder.


zip -r File.zip Folder/
No Comments »

rsync Local Folder with Remote

Tagged with: , , , , , , ,

Synchronize a local directory with a remote directory via ssh and compression


rsync -az -e ssh --delete ip_addr:/home/public /home/local
1 Comment »

Copy Files using SCP

Tagged with: , , , , , , ,

Copy files/folder to a remote server.


scp <file> binnyva@192.168.0.100:/home/binnyva/
scp -r <folder> binnyva@192.168.0.100:/home/binnyva/
No Comments »

Find Open File in a Given Directory

Tagged with: , , , , , , , , ,

Find the process that’s opened the file from a specified directory. You can use this if you cannot unmount a USB drive and want to know which file is open.


lsof +D /media/usb

Original Article

1 Comment »

Create a Bzip2 File

Tagged with: , , , , , ,

create a tarball compressed into bzip2


tar -cvfj archive.tar.bz2 dir
No Comments »

Remove a Folder from Git

Tagged with: , , , , ,

Remove a given folder from a Git repository…


git rm -r cache/
3 Comments »

Create ISO Image of a Folder

Tagged with: , , , , , , ,

Create an iso image of a directory


mkisofs -J -allow-leading-dots -R -V "Label CD" -iso-level 4 -o ./cd.iso data_cd
2 Comments »

Move Subfolder Files to Current Folder

Tagged with: , , , , , ,

This command moves all the files in the subfolder to the current folder.


mv */* .
1 Comment »