This is helpful when approaching a new codebase and wondering where the bulk of the code is located Show Sample Output
If there are less than 10 folders, this script will not delete them
Only search source files directly related to current project. Everything under the "node_modules" directly are ignored.
Music Library Convert Usage lc Old_Directory New_DIrectory Old_Format New_Format lc ~/Music ~/Music_ogg mp3 ogg This will convert all audio files in the old directory to the new directory from the old format to the new format. It will leave the original library alone. The converted library will retain folder structure.
This command will find the file project.txt and delete it.
This command would find the file secret.txt and change its permissions to 755.
This oneliner will remove the number which begins a filename.
1. easy to type 2. linear list of recursive structure of files/directories 3. search in list using / 4. filter list by :g!//d 5. view/edit file in list by Vgf 6. count files/directories in list by :set nu and G 7. sort by :sort
Returns a list, with attributes (think `ls -l`), in reverse chronological order. N is a single numeric parameter. Robust against unfriendly filenames and directory structures. Show Sample Output
This command stores data in the following files: files.txt, links.txt
Find and read all symbolic links in /path1 and stores list in links.txt
find /path1 -type l -exec readlink -f {} \; > links.txt
Find all files in /path2 and stores list in files.txt
find /path2 -type f > files.txt &&
Displays lines in files.txt that do not exist in links.txt
grep -Fxv -f links.txt files.txt
Show Sample Output
I used this to resolve runtime dependencies of an application to create self-contained tar-balls (e.g. PHP for Docker or Rkt) Requirements: - realpath - ldd - find - grep - sort - uniq - xargs
executes from your current directory down
Speed up Google Chrome like speedyfox does for MAC USER. This script will detect all SQLITE DATABASE on the Google directory
Uses ffmpeg to convert all that annoying .FLAC files to MP3 files keeping all the Artist's information in them. There's not much more to it. Show Sample Output
Using netstat & find together, found this while on stackoverflow s few minutes ago and really like it due to the simplicity and so far it's the most concise. Show Sample Output
List imageSize for files with selected extensions in current directory Requires: exiftool (install from arch base repo: sudo pacman -S perl-image-exiftool) 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: