You are not logged in.

#1 2010-09-19 23:51:42

duke11235
Member
Registered: 2009-10-09
Posts: 221

Easy Way to Copy Many Long Pathnames

I extracted a .deb file from Logger Pro, and I need to copy a large number of files, based entirely in /usr. What would be the easiest way to copy all the files under that directory to the location on my computer?
would

cp -R /home/duke/Downloads/loggerdatagz/* /

be Best?

And how do you show the entire contents of a folder, including subdirectories?

Offline

#2 2010-09-20 00:20:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Easy Way to Copy Many Long Pathnames

'ls -R <somedir>' = ls recursively

'cp -r' is fine if you don't have (soft?)links, just files. Are you sure you want to drop it into / ?

Last edited by karol (2010-09-20 00:23:09)

Offline

#3 2010-09-20 10:31:30

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Easy Way to Copy Many Long Pathnames

Personally I would wrap it in a PKGBUILD. There are examples on aur of packages that extracts .deb files that way.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB