Files and folders
Copy, find, compress and convert. 21 commands.
- Search for text inside filesFind every file in a project that contains a word, with the line numbers.
- Find a file by nameSearch your home folder for a file when you know (part of) its name.
- Zip and unzip filesPack a folder into a .zip (or .tar.gz) and unpack it again.
- Change who owns a file or folderFix "permission denied" on a file that belongs to another user by giving it to the right one.
- Check disk space and find what is using itSee how full each drive is, then find the folders taking up the most room.
- Compare two files and see what changedShow the lines that differ between two files or just check whether they're the same.
- Copy a folderCopy a folder and everything in it, or just its contents into another folder.
- Count lines, sort them and remove duplicatesHow many lines a file has, the lines in order, each line once and how often each one appears.
- Create a symlink (shortcut to a file or folder)Make a link that points to another file or folder, so it shows up in two places.
- Cut, join and convert videos with ffmpegTrim a clip, stitch videos together and convert formats, without opening an editor.
- Delete a folder that isn't emptyRemove a folder and everything inside it from the terminal.
- Encode and decode base64Turn text or a file into base64 and back, straight from the terminal.
- Extract, remove or replace audio with ffmpegSave a video's sound as an MP3, mute a video or swap in a new soundtrack.
- Find what's filling up your diskSee how full the disk is, which folders are biggest and which single files are huge.
- Find which program is using a fileWhen a file or folder won't delete because it's in use, find what's holding it.
- Install ffmpegThe command-line tool for converting, cutting and joining video and audio.
- Make a QR code from a linkTurn any link or text into a QR code picture from the terminal, then scan it back to check it works.
- Open .rar and .7z filesExtract RAR and 7-Zip archives from the terminal.
- Pick values out of JSON with jqPull one field, a list of fields or a count out of a JSON file or an API reply, right in the terminal.
- Rename or move a file or folderRename something, or move it somewhere else, from the terminal.
- Show a folder as a treePrint a folder's structure as a tree, handy for docs and for getting your bearings.