this command can be added to crontab so as to execute a nightly backup of directories and store only the 10 last backup files.
This commands compresses the "tmp" directory into an initrd file.
This will add a perl POD stub above each method in all modules found recursively in your current directory. The stub will look like: =head2 method_name =cut sub method_name { ...
This command takes all `.po` files inside `i18n` directory and compiles them to `.mo` files with same basename
using awk, changed the line given by sucotronic in command #11733 to print the first and second columns Show Sample Output
rename all dirs with "?" char in name, leave spaces and () in place Show Sample Output
List all dependencies manifests so you can install them. In a scenario where you want to deploy a number of web applications and run their dependency managers, how could you run all of them in a systematic order. One of the complexity is to ensure you get only your own top level dependencies. That way, you don recursively call development dependencies of your own dependencies. Otherwise you might end up discovering dependency management manifests that are already been pulled by your own projects. # Using this command This command helps me find them and I can then run what?s required to pull them from their respective sources. This command assumes the following: 1. Your code checkouts are in a flat repository layout (i.e. not nested). 2. Finds manifests for: - NPM (nodejs), - Composer (php), - bower, - requirements.txt (Python), and - git submodules Show Sample Output
Way more easy to understand for naive user. Just returns the biggest file with size.
count all the lines of code in specific directory recursively in this case only *.php can be *.*
Command to compress logs
Works on AIX, HP-UX, Linux
Find and delete files over 15 days Show Sample Output
"$PWD" (in quotes) accounts for spaces and other characters normally escaped in file or folder names
I was looking for an easy solution where I could list all of the directories that had a specific file, not to replace it, but more of providing a list to a third-party or for my own reference. Show Sample Output
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: