Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: folder

04 Jun

Move files from Folder 2 Levels Deep

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


mv */*.* .
admin Posted in Command Line, Linux command, copy, file, filler, folder, level, Linux, move, mv 1 Comment
04 Apr

Incremental Backup with tar

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


tar -Puf backup.tar /home/binnyva
admin Posted in Command Line, Linux backup, command, filler, folder, incremental, Linux, tar Leave a comment
02 Apr

Zip Command in Linux

Command to create a zip file from a given folder.


zip -r File.zip Folder/
admin Posted in Command Line, Linux command, compress, folder, Linux, zip Leave a comment
06 Feb

rsync Local Folder with Remote

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


rsync -az -e ssh --delete ip_addr:/home/public /home/local
admin Posted in Command Line, Linux command, filler, folder, Linux, local, remote, rsync, sync 1 Comment
24 Jan

Copy Files using SCP

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/
admin Posted in Command Line, Linux comand, copy, file, folder, Linux, remote, scp, ssh Leave a comment
04 Jan

Find Open File in a Given Directory

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

admin Posted in Command Line, Linux command, file, folder, Linux, lock, lsof, open, umount, unmount, usb 1 Comment
11 Sep

Create a Bzip2 File

create a tarball compressed into bzip2


tar -cvfj archive.tar.bz2 dir
admin Posted in Command Line, Linux bz2, bzip, compress, filler, folder, tar, zip Leave a comment
11 Jul

Remove a Folder from Git

Remove a given folder from a Git repository…


git rm -r cache/
admin Posted in Code, Command Line command, folder, git, reculsive, remove, rm 3 Comments
27 Jun

Create ISO Image of a Folder

Create an iso image of a directory


mkisofs -J -allow-leading-dots -R -V "Label CD" -iso-level 4 -o ./cd.iso data_cd
admin Posted in Command Line, Linux cd, command, dvd, folder, image, iso, Linux, mkisofs 2 Comments
20 Apr

Move Subfolder Files to Current Folder

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


mv */* .
admin Posted in Command Line, Linux command, folder, Linux, move, mv, sub, subfolder 1 Comment

Post navigation

← Older posts

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑