AboutWelcome to Free Software Daily (FSD). FSD is a hub for news and articles by and for the free and open source community. FSD is a community driven site where members of the community submit and vote for the stories that they think are important and interesting to them. Click the "About" link to read more...
In addition to creating programming structures, you can also use the semi-colon to separate stand-alone commands that you want to execute from the same command entry. If you wanted to cd to a certain directory and then look at its contents, you could enter each command on its own line. Or, you could enter them both on the same line. This process is called command chaining.
This article is a continuation to my other Bash-related post, 6 Bash Productivity Tips. Since that article gathered many useful comments and I bumped into several more over the net, here are 5 more tips and tricks. Although these may not be necessarily productivity-related, they will surely ease working in a Bash terminal and it may be worth knowing them.
‘Gmrun’ is a run-program utility that provides bash-like TAB completion and history, the ability to run commands in a terminal using CTRL-Enter. CTRL-R/CTRL-S may be used for history searches, similar to ‘bash’.
You are probably familiar with common keyboard sequences like Ctrl-C to end a program, but there are dozens of useful shortcuts you can use in BASH to edit the command line, move around your command history, and control jobs. I've collected 18 useful Ctrl and Meta (Option) sequences to make you more productive in BASH.
Want to be faster at the Linux command line interface? Since most Linux distributions provide Bash as the default CLI, here are some Bash tricks that will help cut down the amount of typing needed to execute commands. Feel free to comment and share your own speed tricks.
Vim is still one of the most powerful text editors out there. One of its more useful features is that it allows you to set up your own abbreviations and mappings. These can speed up the typing of stock phrases or do far more complicated things. Enter these in command mode to try them out, or add them to your ~/.vimrc (without the initial colon) if you want them to stay.
My good friend Daniel asked me yesterday how to change Firefox so that Shift+Enter auto-completes *.org instead of *.net. After about a 2 minute google session, I had the answer to share with everybody.
Making use of previously entered commands can help you remember the location of files previously edited, canremove the need to re-enter long path names and can save you a lot of typing mistakes.