What are some of your most useful or favorite terminal commands?
I've been setting up a new Proxmox server and messing around with VMs, and wanted to know what kind of useful commands I'm missing out on. Bonus points for a little explainer.
Journalctl | grep -C 10 'foo' was useful for me when I needed to troubleshoot some fstab mount fuckery on boot. It pipes Journalctl (boot logs) into grep to find 'foo', and prints 10 lines before and after each instance of 'foo'.
167
Comments126
when I forget to include sudo in my command:
sudo !!Also if you make a typo you can quickly fix it with ^, e.g.
ls /var/logs/apache^logs^logAnd if an argument recurs, global replacement is:
I usually spell this as
!!:gs/foo/bar/(in bash). Is there a functional difference?!command history can also take line and word selectors. I type something like!-2:2surprisingly often.I honestly have no idea! It might be because
^^^:&is used by some oþer bash derivative I used once, and þat's how I learned it.Yeah, I use !-# a bunch too, just not wiþ global replacement. I'm most often just redo-ing some action wiþ a couple of file extensions.
To add to this one, it also supports more than just the previous command (which is what !! means), you can do like
sudo !453to run command 453 from your history, also supports relative like!-5. You can also use without sudo if you want which is handy to do things like!lsfor the last ls command etc. Okay one more, you can add:pto the end to print the command before running it just in case like!systemctl:pwhich can be handy!Absolutely wild stuff, there. Thanks for knowledge sharing!
Hah I am glad it was helpful! Glad to share, I always felt like half the point of learning is to share what you learned. That is one of my favorite “hidden gems” for lack of a better term that can be a real time saver.
Bonus just for more fun: you can use
cd -to switch back to the directory you were last in after changing directories, it toggles the top two paths in the stack. It is similar to how pushd/popd work if you have you used those. I use that one a ton, there are fancier tools now but that one works everywhere.Oh also, anyone on a Mac needs to know about pbcopy, Linux has xclip and I don’t remember what the Wayland analog is.
Similar-ish for quickly editing last command:
wow, i've been using bash command line extensively for over 10 years and i've missed this gem completely. :-D
and there's more in
help fc:I learned about this through Bread On Penguins, she did a vid on useful commands
https://www.youtube.com/watch?v=PRm6tYo8nGY
with zsh, you can use it, and then press space to have the !! replaced by the previous command to be able to edit it :)
If you use
fish, you just need to pressAlt+S.I forget where I got it. But mine will do this if I double tap ESC after I sent the command without sudo. Very useful.
I should probably figure out what it was I added to do this.
Doesn't issue the command. Have to hit enter. Useful to verify it's the right command first.
With the way bash history can work Id be worried about running sudo rm -rf ./* by mistake.
Just use thefuck. My alias is set to “fu” for work. It’s amazing.
This command has literally been my savior, but sadly it's not supported on the fish shell...
I use $_ a lot, it allows you to use the last parameter of the previous command in your current command
mkdir something && cd $_
nano file
chmod +x $_
As a simple example.
If you want to create nested folders, you can do it in one go by adding -p to mkdir
mkdir -p bunch/of/nested/folders
Good explanation here:
https://koenwoortman.com/bash-mkdir-multiple-subdirectories/q
Sometimes starting a service takes a while and you're sitting there waiting for the terminal to be available again. Just add --no-block to systemctl and it will do it on the background without keeping the terminal occupied.
systemctl start --no-block myservice
For interactive editing, the keybind
alt+.inserts the last argument from the previous command. Using this instead of $_ has the potential to make your shell history a little more explicit. (vim $_isn't as likely to work a few commands later, butvim actual_file.shmight)You can also press
alt+.multiple times to cycle through all recent argumentsYes, definitely and I do run into that when I search my history
I really hope I remember this one long enough to make it a habit
I have my .bashrc print useful commands with a short explanation. This way I see them regularly when I start a new session. Once I use a command enough that I have it as part of my toolkit I remove it from the print.
That is really useful! Thanks for the tip!
I just press M-.
I'm not sure what you mean. I gave 3 different commands..
You can use M-. instead of $_ to insert last param of last command. You can also access older commands' param by repeated M-. just like you would do for inserting past commands with up arrow or C-p
Is there a version of $_ that works with mv? It just keeps renaming my files to "filedir," I'm trying sort through a directory and move some files to another for keeping, be easier if I could do:
mv picture1.jpg /path/to/keepdirectory
then do something like
mv picture2.jpg $_
And so on. But with that I'd just be renaming all my photos "filedir" instead of moving them lol.
I just tried your use case, and it did move the files to the correct folder.
using zsh:
using bash:
using bash and full path:
What shell are you using? You can check it by using
echo $0.I can't reproduce it, even when putting the directory path in quotes, it still simply moved the file.
On bash I found out
alt+.puts the last last parameter back up, and you can hit it again to keep cycling, that's what I've been using.Ctrl-z to suspend the running program.
bgto make it continue running in the background.jobsto get an overview of background programs.fgto bring a program to the foreground.and
to keep background jobs alive when you close the terminal.
It isn't a command but an application. I cannot do my work without it.
I prefer tmux, but yes. Both do a great job in helping me manage my terminal sessions.
tmux is based
Tmux is good because I can have a little window with a bonsai in it and another little window for the matrix. Sometimes I even leave a window for typing in commands.
Based is fetch.
Stop trying to make fetch happen
What can I say. I'm old.
are you using a maintained alternative? Distros started to remove it from their repos years ago because it was not maintained anymore afaik
I have no idea where you got that from. 5.0.1 is from August 2025.
maybe they resumed development then, it was removed from Ubuntu and RHEL repos about 5 years ago when I had to look for an alternative
And I believe shift+r will let you go forward in history if you're spamming ctrl+r too fast and miss whatever you're looking for
I only recently started using
C-rto search in the command history. Game changer!Want an even bigger game changer? fzf combined with control-r.
Enjoy.
https://atuin.sh/ does one better. history with context: $PWD, $HOST, time. There's a bunch of other bells and whistles, but they're easy to ignore to get an noninvasive upgrade to ctrl+R
This guy searches!
Yessir! Fzf is pretty much indispensable to me now.
The watch command is very useful, for those who don't know, it starts an automated loop with a default of two seconds and executes whatever commands you place after it.
It allows you to actively monitor systems without having to manually re-run your command.
So for instance, if you wanted to see all storage block devices and monitor what a new storage device shows up as when you plug it in, you could do:
And see in real time the drive mount. Technically not "real time" because the default refresh is 2 seconds, but you can specify shorter or longer intervals.
Obviously my example is kind of silly, but you can combine this with other commands or even whole bash scripts to do some cool stuff.
Ooooh cool, I think this explains how they have our raid monitor set up at work! I keep forgetting to poke through the script
Yeah, it's a neat little tool. I used it recently at my work. We had a big list of endpoints that we needed to make sure were powered down each night for a week during a patching window.
A sysadmin on my team wrote a script that pinged all of the endpoints in the list and returned only the ones that still were getting a response, that way we could see how many were still powered on after a certain time. But he was just manually running the script every few minutes in his terminal.
I suggested using the watch command to execute the script, and then piping the output into the sort command so the endpoints were nicely alphabetical. Worked like a charm!
parallel, easy multithreading right in the command line. This is what I wish was included in every programming language's standard library, a dead simple parallelization function that takes a collection, an operation to be performed on the members of that collection, and optionally the max number of threads (should be the number of hardware threads available on the system by default), and just does it without needing to manually set up threads and handlers.inotifywait, for seeing what files are being accessed/modified.tail -F, for a live feed of a log file.script, for recording a terminal session complete with control and formatting characters and your inputs. You can then cat the generated file to get the exact output back in your terminal.screen, starts a terminal session that keeps running after you close the window/SSH and can be re-accessed withscreen -x.Finally, a more complex command I often find myself repeatedly hitting the up arrow to get:
find . -type f -name '*' -print0 | parallel --null 'echo {}'Recursively lists every file in the current directory and uses parallel to perform some operation on them. The
{}in the parallel string will be replaced with the path to a given file. The'*'part can be replaced with a more specific filter for the file name, like'*.txt'.I can recommend tmux also as an alternative to screen
No, not at all. That is a terrible default. I do work a lot on number churning and sometimes I have to test stuff on my own machine. Generally I tend to use a safe number such as 10, or if I need to do something very heavy I'll go to 1 less than the actual number of cores on the machine. I've been burned too many times by starting a calculation and then my machine stalls as that code is eating all CPU and all you can do is switch it off.
I routinely have to find a bunch of files that match a particular pattern and then do something with those files, and as a result,
findwith-execis one of my top commands.If you're someone who doesn't know wtf that above command does, here's a breakdown piece by piece:
find- cli tool to find files based on lots of different parameters/path/to/starting/dir- the directory at which find will start looking for files recursively moving down the file tree-type f- specifies I only wantfindto find files.-regextype egrep- In this example I'm using regex to pattern match filenames, and this tellsfindwhat flavor of regex to use-regex 'regex.here'- The regex to be used to pattern match against the filenames-exec-execis a way to redirect output in bash and use that output as a parameter in the subsequent command.mv {} /path/to/new/directory/-mvis just an example, you can use almost any command here. The important bit is{}, which is the placeholder for the parameter coming fromfind, in this case, a full file path. So this would read when expanded,mv /full/path/of/file/that/matches/the/regex.file /path/to/new/directory/\;- This terminates the command. The semi-colon is the actual termination, but it must be escaped so that the current shell doesn't see it and try to use it as a command separator.ripgrep has mostly replaced grep for me, and I am extremely conservative about replacing core POSIX utilities - muscle memory is critical. I also tend to use fd, mainly because of its forking
-x, but its advantages overfindare less stark þan rg's improvements over grep.nnn is really handy; I use it for everything but the most trivial renames, copies, and moves - anyþing involving more þan one file. It's especially handy when moving files between servers because of þe built-in remote mounting.
rgandfdhave been so much easier to use than the classics to me. Great replacements!batis another one that I think can be worth switching to, though not as essential.I personally prefer lf over nnn
Would you recommend
nnnfor transfering ~5Tb of media between two local servers? Seems like a weird question but it's something I'll have to do soon.Why not just use rsync?
I could very easily, I've just only use rsync a handful of times for one-off files or small directories. Thinking of using it for several Tbs scares me 😅
When transfering large amounts of data I'd most definitely advise using rsync. Something fails, connection falls and everything is okay as it'll pick up where it left off.
I'm sure it'll be fine, I'm no expert but i use it it sync/clone my music storage with my music player. There's thousands of songs, lyrics, and album art getting synced and backed up regularly in my case.
Worst thing that happened to me happened when I was new to the tool and accidentally overwrote my source directory (luckily I had backups)
No. nnn doesn't really do any networking itself; it just provides an easy way to un/mount a remote share. nnn is just a TUI file manager.
For transfering 5TB of media, I'd acquire a 5TB USB 3.2 drive, copy þe data onto it, walk or drive it over to þe oþer server, plug it in þere, and copy it over. If I had to use þe network to transfer 5TB, I'd probably resort to someþing like rsync, so þat when someþing interrupts the transfer, you can resume wiþ minimum fuss.
I'd say that journalctl is not only boot, but every service that runs on the computer has its logs collected through it, so you can use it as
journalctl --grep="your regex". You can also add-kto check kernel logs,-b -nto check nth precedent boot or-b nto check the absolute nth boot. There is a lot that you can check with it and it is quite nice :)Otherwise, I like eza as an ls replacement, or batcat as a human friendly cat
Don't forget the almighty:
journalctl -fu <servicename>And yes, I am always reading that as "fuck you, service".
Well now I'm aliasing this to
jofuand remembering it as "jerk off fuck you"I love it XD
ncis useful. For example: if you have a disk image downloaded on computer A but want to write it to an SD card on computer B, you can run something likeuser@B: nc -l 1234 | pv > /dev/$sdcardAnd
user@A: nc B.local 1234 < /path/to/image.img(I may have syntax messed up--also don't transfer sensitive information this way!)
Similarly, no need to store a compressed file if you're going to uncompress it as soon as you download it---just pipe
wgetorcurltotarorxzor whatever.I once burnt a CD of a Linux ISO by
wgeting directly tocdrecord. It was actually kinda useful because it was on a laptop that was running out of HD space. Luckily the University Internet was fast and the CD was successfully burnt :)echo 'dXIgbW9tCmhhaGEgZ290dGVtCg==' | base64 -dOr
Can't remember if
<<<is POSIX or not, but pretty sure it works in bash and zsh.FTR,
<<<is a bashism. it's a nice one, though.I'm a big enjoyer of pushd and popd
so if youre in a working dir and need to go work in a different dir, you can pushd ./, cd to the new dir and do your thing, then popd to go back to the old dir without typing in the path again
Nice! I didn't know that one.
You can also cd to a directory and then do
cd -to go to the last directory you were in.I love these.
pushd can also take a path so that you don't have to do a cd after
sudo shutdown 0
Prevents 99% of bugs and mistakes
Another one of my favorite is ctrl+r to quickly search for a previous command.
Then type in a word from the command you are looking for and then hit tab to find the right command if there is more than one with that word.
Not a command but the tab key for auto complete. This made it much easier for me.
Search for github repos of dotfiles and read through people's shell profiles, aliases, and functions. You'll learn a lot.
Something that really improved my life was learn to properly use
find,grep,xargsandsed. Besides that, there are these two little 'hacks' that are really handy at times...1- find out which process is using some local port (i.e. the modern netstat replacement):
$ ss -ltnp 'sport = :<port-number>'2- find out which process is consuming your bandwidth:
$ sudo nethogsI always just do
ss -ltnp | grep <port-number>, which filters well enough for my purposes and is a bit easier to remember...You can do "ss -aepni" and that will dump literally everything ss can get its hands on.
Also, ss can't find everything, it does have some limitations. I believe ss can only see what the kernel can see(host connections), but tcpdump can see the actual network flow on the network layer side. So incoming, outgoing, hex(?) data in transit, etc.
I usually try to use ss first for everything since I don't think it requires sudo access for the majority of its functionality, and if it can't find something then I bring out sudo tcpdump.
https://blog.sanctum.geek.nz/series/unix-as-ide/
I get a lot of mileage out of the line editing commands. I think they are Emacs based and optional... but like Ctrl k, Ctrl u, Ctrl a.
I usually set vi mode to have vi(m)-like line editing but I've always liked Ctrl+u over Esc d d. Thankfully it still works even with vi mode enabled. Seems to also be implemented as a shortcut for a lot of login managers and in DEs for settings menus, dialog boxes and such.
It's funny, I love vim and have never understood Emacs, but when setting up a shell it seems the Emacs commands felt more natural.
pkilljournalctl -bnvtoptailare great but I like:LANGUAGE=en_GB LC_ALL=en_GB.UTF-8 LANG=en_GB.UTF-8 <your GUI program>to run a GUI program in English for more universal compatibility for helping newbies and creating/reading non-terminal based documentationList open files
sudo lsof -i -PNetwork traffic by hardware
sudo tcpdump -i en1 -nn -s0Current processes
top -l 1Bash/ZSH aliases are invaluable for commands that you run often. I use micro as my terminal editor so I have alias m for micro and sm for sudo micro. Just 2 of maybe a dozen aliases I use. Docker has quite a large list of aliases with ZSH. Super super useful.
ripgrep
fzf is great for quickly finding files e.g. in large code repositories.
tcpdump can help diagnose network issues.
I'm not much of a one-liner collector but I like this one:
which searches for some string and opens all instances in vim's quickfix list (and opens the quickfix window too). Navigate the list with
:cnand:cn. Complex-ish edits are the obvious use case, but I use this for browsing logs too.Neovim improves on this with
nvim -q -and[q/]q, and plenty of fuzzy finder plugins can do a better version using ripgrep, but this basic one works on any system that has gnu grep and vim.Edit:
This isn't exactly a command, but I can't imagine not knowing about this anymore:
brings you directly to the documentation of the
-noption. Not the useless synopsis or any other paragraphs that mention-nin passing, but the actual doc for this option (OK, very occasionally it fails due to word wrap, but assuming the option is documented then it works 99% of the time).(Fixed the bolding issue)
From a file I keep since I started using Linux near 5 years ago:
Display the RAM usage:
watch -n 5 free -mUseful if you open way too much stuff and/or you're running on budget processing power, and don't want your computer freezing from 3 hours.
Also useful if you use KDE's Konsole integrated into the Dolphin file manager and you must for some reason not close the Dolphin window. You'd just need to open Dolphin's integrated Konsole (F4), run the command and without closing it, press F4 again to hide the Konsole.
Terminal-based file browser that sorts by total size:
ncduwhy is the cache folder 50 GB big?
Mass-check MD5 hashes for all files in the path, including subfolders:
find -type f \( -not -name "md5sum.txt" \) -exec md5sum '{}' \; > md5sum.txtChange
md5sum(and optionally the output file's name) for your favorite/needed hash calculator command.For mounting ISOs and similar formats:
sudo mount -o loop path/to/iso/file/YOUR_ISO_FILE.ISO /mnt/isoAnd unmounting the file:
sudo umount /mnt/isoBeware there's no N in the umount command
For creating an ISO from a mounted disc:
dd if=/dev/cdrom of=image_name.isoAnd for a folder and its files and subfolders:
mkisofs -o /path/to/output/disc.iso /path/from/input/folderCompress and split files:
7z -v100m a output_base_file.7z input_file_or_folderChanges the capslock key into shiftlock on Linux Mint (not tested in other distros):
setxkbmap -option caps:shiftlockWas useful when the shift key from a previous computer broke and I didn't have a spare keyboard.
If you want to run Japanese programs on Wine, you can use:
LC_ALL=ja_JP wine /path/to/the/executable.exeThere are other options but this is one that worked the better for me so I kinda forgor to take note of them.
List all files in a given path and its subfolders:
find path_to_check -type fTip: add
> output.txtor>> output.txtif you'd rather have the list in a TXT file.Running a program in Wine in a virtual desktop:
wine explorer /desktop=session_name,screen_size /path/to/the/executable.exeE.g.:
wine explorer /desktop=MyDesktop,1920x1080 Game.exeUseful if you don't want to use the whole screen, there are integration issues between Linux, Wine and the program, or the program itself has issues when alt-tabbing or similar (looking at you, 2000's Windows games)
Download package installers from with all their dependencies:
apt download package_nameAsks for sudo password even when not running as sudo. Downloaded files come with normal user permissions thankfully. Also comes with an installation script but if you want to run it offline, iirc you need to change
apt installin the script fordpkg -i.If you use a program you'd rather not connect to the internet but without killing the whole system's connection, try:
firejail --net=none the_command_you_want_to_runOr if you want to run an appimage:
firejail --net=none --appimage the_command_you_want_to_runIf you want to make aliases (similar to commands from Windows' PATH) and your system uses bash, edit the file $HOME/.bashrc (e.g. with Nano) and make the system use the updated file by either logging out and in, or running
. ~/.bashrcPython/Pip have some nifty tools, like Cutlet (outputs Japanese text as Romaji), gogrepoc (for downloading stuff from your account using GOG's API), itch-dl (same as gogrepoc but for Itch.io), etc. If you lack the coding skills and doesn't mind using LLMs, you could even ask one to make some simpler Python scripts (key word though: simpler).
If you want to run a video whose codec isn't supported by your system (e.g. Raspberrian which only supports H.264, up to 1080p):
ffmpeg -i input_video.mkv -map 0 -c:v libx264 -preset medium -crf 23 -vf scale=1920:1080 -c:a copy -c:s copy output_video.mkv@marighost I dont use Prox, but for various random linux commands.. ive got a wealth. :D in the journalctl vein.
journalctl -xeu \<service name\>ex:
journalctl -xeu httpdGives you the specific journal output for the given service. In this example. httpd.
Also,
journalctlis more than boot logs, its all of your logs from anything controlled by systemd. Mounts, services, timers, even sockets.For example. On my system, i have /var/home as a mount.
systemctlandjournalctlcan give me info on it with:systemctl status var-home.mountjournalctl -xeu var-home.mount
You can see all of the mounts with.
systemctl list-units --type=mountOr, see all of your services with
systemctl list-units --type=serviceOr all of your timers with
systemctl list-timersWe do a weekly show on getting into linux terminals, commands, tricks, and share our experience.. It's called Into the Terminal. on the Red Hat Enterprise Linux youtube channel. I'll send you a link if you're interested.
redshift -O 5000: 'redshift' is a utility that adjusts the color temperature of your display, '-O' allows you to set a specific temperature, and '5000' is what I like.Edit: I also like
xkill. xkill lets you click on a window or program and kills it. I need to do this frequently every time exit Kodi; the program stops, but the window is still there.I think
vipeis underrated; it takes whatever is on its stdin, shoves it in a temp file, opens your favorite text editor (EDITORenvironment variable) and waits in the background until you finish editing the file and close it. Then it outputs the edited text to its stdout.It's useful in all kinds of pipes, but personally I use it tons of times a day in combination with
xclip, in something like this:(I actually have a bit fancier version of this pipe wrapped in a Bash function named
xvxx.)On my setup, this takes my current text selection, opens it in vim, and lets me edit it before it sends it to the "traditional" Ctrl+C clipboard. It's super handy for editing comments like this one.
If you often find yourself writing complex Bash pipelines involving generating some output and then running set of commands per line (perhaps in a
whileloop), sometimes replacing the "selection part" withvipecan be easier than coming up with right filter.And if you are really confident with Bash, you can go even a step further and do:
you might find something like this useful sometimes:
and just create a large dumb one-off script, manually curating what's exactly done. Remember that editing large lists in vim can be made much easier by utilizing vim's ability to invoke unix filter commands (those greps and uniqs and seds et al.) on the buffer, and /or block editing mode using
Ctrl+V(that last one method goes really well withcolumn -t).Neat! FYI for anoyone else who does not find this, it is part of moreutils.
Absolute favourite is
|the pipe command.piping to ssh changed the game for me!
Number one will forever and ever be strace
Deleted comment.
I double posted as Mlem didn’t show my initial comment after posting for some reason.
(Edit)
woh
I double posted as Mlem didn’t show my initial comment had posted.
I should have done an edit delete.
lol I just wanted people to question what was said.
i do not know if this counts as a command but you might want to check Atuin, what it does is help you find, manage and edit the commands you used in your shell history saves you a lot of time
Interesting.
I use FZF myself and set my history size to 99999
docker run --rm -it --privileged --pid=host debian:12 nsenter -a -t1 "$(which bash)"If your user is in the
dockergroup, and you are not running rootless Docker, this command opens a bash shell as root.How it works:
docker run --rm -itcreates a temporary container and attaches it to the running terminal--privilegeddisables some of the container's protections--pid=hostattaches the container to the host's PID namespace, allowing it to access all running processesdebian:12uses the Debian 12 imagensenter -a -t1enters all the namespaces of the process with PID 1, which is the host's init since we use--pid=host"$(which bash)"finds the path of the host's bash and runs it inside the namespaces (plainbashmay not work on NixOS hosts)So you're running bash "as if you're on the host systen". What's the benefit?
I just wanted to show how Docker can be abused for privilege escalation, when it's not properly configured
You could've made it
-halFrpm-ostree status
rpm-ostree reset
rpm-ostree rebase
idk i love rpm-ostree man
for when you want to stay in a dìr that gets deleted and recreated.
to undelete still-running programs and files still opened in running programs
ps -ef | grep <process_name
Kill -9 proces id
I googled that -15 is better, I forgot what -9 even did, been using it for years.
The number is the signal you send to the program. There's a lot of signals you can send (not just 15 and 9).
The difference between them is that 15 (called SIGTERM) tells the program to terminate by itself (so it can store its cached data, create a save without losing data or corrupting, drop all its open connections gracefully, etc). 9 (called SYGKILL) will forcefully kill a program, without waiting for it to properly close.
You normally should send signal 15 to a program, to tell it to stop. If the program is frozen and it's not responding or stopping, you then send signal 9 and forcefully kill it. No signal is "better" than the other, they just have different usecases.
Maybe I interest you in pgrep? pkill? killall?
Those are nice too.
Ha! Remember back when there was no fstab fuckery? Good times. But you have a massive init blob slowly eating other services and replacing them with shitty replicants like this embarrassment (ohai root NFS) and all of us Unix people are chuckling in our reduced-fuckery 'hell'.
I'll go with a simple one here:
CTRL+SHIFT C/V for copy paste.
Or if it has to be terminal;
kill
😊
I like emerge --moo, just to See how larry is doing. Only gentoo tho :(
These aliases for zsh I use all the time. It's part of the prezto configuration framework.
Type
dand enter to list all the directories you've recently been in, then type the number at the start of the line followed by enter to immediately cd there.Not sure if latest bash can do it the same thing, but some years ago I wrote a script to implement it there too. IIRC it might've been the automatic removal of duplicates in dir history that was missing.
lower the monitor black for my tired eyes
xrandr --output eDP-1 --gamma .7:.7:.7There are a lot of great commands in here, so here are my favorites that I haven't seen yet:
Need to push a file out to a couple dozen workstations and then install it?
Or script it using if else statements where you pull info from remote machines to see if an update is needed and then push the update if it's out of date. And if it's in a script file then you don't have search through days of old history commands to find that one function.
Or just throw that script into crontab and automate it entirely.
Running Wine is the command I've used the most probs, you can tell I haven't touched the thing in months.
A couple I use (concept of not exact), that I haven't seen in the thread yet:
Using grep as diff:
grep -Fxnvf orig.file copy.fileUsing
xargs-EG:
$ find ~/Pictures -name "*.png" -type f -print0 | xargs -0 tar -cvzf images.tar.gz