My Latest Opensource.com Column: Small, Useful Linux Utilities - My Pick is a Clipboard Manager
From my latest column at OpenSource.com:
Quote:
--jeremy |
Not a utility, but bits of functionality more than anything I find extremely useful that aren't well known.
Ctrl-R to search shell command history, split window in vi for large files (Ctrl-w s), etc. I guess conky is the biggest utility as it feeds my monitoring nerd and obviates need for more utilities. Mine is at https://github.com/xplorn/conky |
I wonder how those clipboard managers would interact with Clipple (a Firefox addon)
Later: The answer as regards Glipper (not on the list) seems to be that one effectively has two independent clipboards. Initially Clipple was turned off after the Glipper installation. Presumably the same holds for the others listed but I could not get Diodon to work (perhaps just me and the Gnome flasback thing). |
I had a conversation recently with someone who is pretty knowledgeable and was surprised he had never heard of TAC, which like it's name implies, does the same thing as CAT, only in reverse. I've found it pretty invaluable.
|
JSON Query
https://stedolan.github.io/jq/ It's awk / xmlstarlet for JSON. http://xmlstar.sourceforge.net/overview.php |
fzf - Fuzzy Search
I recently discovered fzf.
https://github.com/junegunn/fzf It's a fuzzy search utility. I have a script which feeds bash history into it and it displays it with curses. As I type things into the search field, it narrows the selections. Then, when I select one with the arrow keys or mouse, it runs it. I have another version of the script that just copies the selection to the clipboard (klipper). Then, I paste it to the command line so I can edit it before running it. I have it bound to Ctrl+F in bash. |
Clipboards ...
I've used klipper for forever. Can't imagine working without it or a similar utility.
The only feature it doesn't have is a way to paste and pop items. When I go to a website with a user name and password etc. I may put my id and password into the clipboard (I know it's a security issue, but my notebook is almost always at home.) I would like a paste and pop operation so that once I have pasted the first field, the second is on top ready to use. Do any clipboards have a feature like this? Sorry for being a bit off topic. |
duplex - duplex printing emulation for non-duplex printers
[shameless plug] (It's my project!)
People in Linux seem to either print on just one side of the paper or buy a printer with duplex (two-sided) printing hardware. Two-sided printing with non-duplex printers has worked forever in Windows, but you have to go out of your way to do it in Linux with something like boomaga, xpp, or similar utilities that make you fill in all the blanks per job at least once, usually twice, every time you use them. duplex is a set of bash scripts which emulate duplex printing on a non-duplex printer. You set it up once and it just works. Most of the scripts have both CLI and GUI versions. (The GUI versions do have blanks to fill in, but most have default values.) To do duplex printing on a non-duplex printer, you have to print all of the odd | even sides, then reinsert the paper and print all the even | odd sides (which side prints first depends on how the printer handles paper). A unique feature of duplex is that it will print one side of all of the pages for multiple print jobs at once so you only have to reinsert the paper once for the whole batch. You can also use duplex just as a simple print queue manager if your printer does duplex in hardware or you just want to save up print jobs, concentrate on your workflow, and print them in batches when you're ready. |
yad - GUI Dialog Tool
yad is a great GUI dialog tool. It's a fork of zenity which is being actively developed and supported.
It's quite versatile and powerful and can support complex layouts while still being very easy to use for simple dialogs. Among other features which got me to switch from zenity to yad are dialog boxes which automatically add scroll bars when there's too much information to fit the box and a tail option that displays the end of that information as it comes in. |
I love ncdu - https://dev.yorhel.nl/ncdu
It sorts your folders/files by biggest first and lets you delete them if you want. It also allows you to exit to a subshell where you can examine a particular file using mc (Midnight Commander) or some other utility to see if you really want to delete the file. Then, you can return to where you were and continue where you left off. I install this on every machine I touch, along with nmap and mc. I just can't understand how people can produce a distro where you actually have to install nmap and mc. They are pretty much indispensable to me. Another great utility is vnc. Currently, I'm using rdesktop, xrdp and tightvncserver to access remote machines. It works well enough. I need to figure out how to include ssh with them though. ssh is far and away the most useful tool I use daily. Again, I don't understand how some distros require installing openssh-server. That should be standard. The last tool I depend on is openvpn. I don't mind downloading & compiling this one but it also is installed on all my machines as well. I can't remember what I did before openvpn. It amazes me when I meet a Linux user who does not use these things. Oh, and VirtualBox. I have my daughter using this on her laptop now. Great tool! |
I guess since nobody mentioned it.... ag, the silver searcher.
https://geoff.greer.fm/ag/ A parallelized grep written by a truly obsessive speed freak. There are a couple of integration packages with emacs, I'm using helm-ad.el Particularly useful is (helm-ag-project-root) It walks down the directory tree toward / until it finds a .git or .hg or .svn ... and then uses things like git ls-files (or matching hg or ...) command to find all files in project to search. Great for searching for things in openembedded projects especially if you're ina truly massive tree like the linux kernel. |
fsarchiver a must have tool for backing up and restoring entire files systems with no restrictions or caveats
I never fear destroying my build systems for VSIDO having fsarchives of these systems.. within minutes I can back up an entire file system and restore even faster |
While we're on the subject of backup....
zbackup http://zbackup.org/ has a couple of nice features, making a compelling tool for sneakernets. It deduplicates AND encrypts backup copies. So if I'm using a sneakernet, (ie. a USBpen to move stuff between systems) I can do so without worrying that I might expose confidential stuff if I lose the pen. |
What's the difference?
A utility I use practically every day when I'm coding is kdiff3. It's free, and powerful, a solid engine for comparing files or directories, whether they be in different code repositories, or different versions in one repository. It fits neatly into both git and svn command lines, giving you a gui when you want it for comparison. It's also good for comparing notes, logs, and ascii dumps.
|
Quote:
I find it's a little user hostile... but repays study. As a visual difftool I prefer meld. So I always in my ~/.gitconfig I have... [merge] tool = kdiff3 [diff] tool = meld I always use the -d option with diftool.... as in... git difftool -d rev1 rev2 |
All times are GMT -5. The time now is 08:41 PM. |