How To Turn Off Overwrite Request on when you copy in Centos
When copying a folder in centos, it interactively asks if you want to overwrite a file, the -f flag does not work. Simple solution, use \cp.
When copying a folder in centos, it interactively asks if you want to overwrite a file, the -f flag does not work. Simple solution, use \cp.
find / -type f -size +20000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’
or
find / -type f -size +20000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’ > filelist.txt
To put the results in a text file.
Found here, a good resource for command line stuff – http://snippets.dzone.com/posts/show/1491
Twitter is a cool way to find great resources. Shell fu is following me so I checked out their site, sounded good. Great resource, lots of useful and advanced shell scripts and command line tips.
Check it out at http://www.shell-fu.org/
Follow me on twitter at http://www.twitter.com/howtolinux
Follow shell-fu on twitter at http://twitter.com/shellfu