A few weeks ago, I found out about the incredibly useful Bash variable $_, which means “the last argument of the last command executed”.
It’s kind of similar to Perl’s $_ var in some ways, and can save a lot of typing.
Continue reading ‘Bash’s $_ variable (last argument)’
I’ve decided to do a few posts about some of the cool tools and tricks I use most in my day to day usage of Linux, and I’ll start with sshfs, the SSH filesystem.
As the name might suggest, sshfs allows you to mount all or part of a remote system’s filesystem with nothing more than an SSH connection. Here’s some examples of how to use it.
Continue reading ’sshfs - Mount a filesystem over SSH’
Bash allows for programmable completion, to extend the “hit tab to complete what I started typing for me” functionality. (Programmable completion was added to Bash in 2.04 beta, so if you have a Bash older than that, it won’t work - use bash –version to find out). Here’s a quick guide to setting up bash-completion to make Bash even nicer to use. Continue reading ‘Bash auto-completion’
Recent Comments