Archive for November, 2006
Tuesday, November 7th, 2006
Copy While Preserving Permissions
You can use the following command to copy the contents of a directory while preserving the file permissions:
mkdir -p dir2 && cd dir1 && tar -cf - . | (cd dir2 && tar -xpvf -)
dir1 is the source directory and dir2 is the destination directory. You may want to preface the command […]
No Comments » - Posted in Linux by lee
Tuesday, November 7th, 2006
Determine if USB is 1.1 or 2.0 under Linux
Some equipment I use requires USB 2.0. The easiest way I know to determine if the computer I’m using supports USB 2.0 is to look in the file /proc/bus/usb/devices. If USB 2.0 is supported, there should be an entry like this:
T: Bus=04 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=1 Spd=480 MxCh= 6
B: Alloc= […]


