Linux Cheat Sheet
To find specific string e.g. "127.0.0.2" inside files in current directory print those filenames.
find . -type f -exec grep 127.0 . 0.2 {} \; -print |
To find and print files modified last 10 minutes in current directory
find . -type f -mmin - 10 |
To find all files in current directory modified 30 days ago and remove them
To print inodes usage
To count files inside current directory
To check Linux version
To check CentOS/Redhat release
To find specific keyword within a bz2 file: e.g
No comments:
Post a Comment