The Basic Essentials You Should Do After Installing Ubuntu
The following instructions should be compatible with
Make The Up/Down Keys Search History
This assumes you are using the Gnome terminal. This has been tested with Ubuntu 14.04.
~/.inputrcwith this command (to apply the change to the current user only):
$ gedit ~/.inputrc
or, to apply it system wide (assuming you have admin privileges):
$ gedit /etc/.inputrc
Add the following lines:
Save then close the file.
Execute this command in a terminal (not that you cannot
1 2 3
$ bind -f ~/.inputrc # OR $ sudo bind -f /etc/.inputrc
Linuxbrew is a copy of Mac’s Homebrew for Linux. It’s useful for installing applications that may not have built in installation support using apt or yum.
See http://linuxbrew.sh/ for installation instructions.
Install fzf For Better Reverse Lookup
See https://github.com/junegunn/fzf for installation instructions (I recommend using Linuxbrew).
Install fd For Better find
See https://github.com/sharkdp/fd for installation instructions. Really easy to install on Debian systems.
Increase Max Num. of Open Files
Sometimes you might run into the error:
Linux puts a limit on the max. number of files that can be open at any one time (
kern.maxfiles), and the maximum number of files that can be open by a single process at any one time (
To see what the current limits are:
To increase the limits:
Add A Alias For Moving Up Multiple Directory Levels
By default, to move up multiple directory levels, you have to append
cd for each level. For example, to go up five directory levels:
This gets somewhat tedious when you are down in the depths of some directory structure. To speed things up, you can add the following aliases to
~/.bashrc or similar:
Then you can just type
.. to go back one directory,
... to go back two directories, e.t.c.
Make “ll” An Alias For “ls -l”
The long form list directory command
ls -l is so useful and frequenctly used that it is handy to create an alias for it (
ll being the common and quick-to-type alias). Add the following to your
Install The zsh Shell And The Powerline10k Theme
My favourite shell is
zsh with the Powerline10k theme. This combination provides smart auto-completion, git repo status markers on the prompt, and other useful features. To set this up, firstly install
Install the Powerline10k theme:
~/.zshrc. You can change your default login shell with
Install pm-utils To Suspend
I’ve had difficulty suspending computers running Ubunutu 18.04 using the default GUI. If you hold down
Alt while on the top-right system menu in the Ubuntu 18.04 desktop, the power button should change to a “pause” and allow the computer to suspend. However this button has not worked for me. Instead, I install
And then I can suspend the computer with:
Turn On Multiple Workspaces
Multiple workspaces (also called virtual desktops by Ubuntu) is a great feature to enable for increased productivity.
Assuming you are using the unity interface (the default for Ubuntu v14.x or v16.x), navigate to System Settings, then click Appearance, and then click the Behaviour tab. Tick the Enable workspaces checkbox and you’re done!
To switch workspaces, press
Ctrl-Alt (on a Windows keyboard) or
Cmd-Alt (on a Mac keyboard) along with an arrow key, e.g.
Ctrl-Alt-RightArrow to move to the workspace to the right.
To Add More Workspaces
How to add more workspaces than the default 4 you get when enabling the option in the GUI? Easy, change the
hsize settings! If you wanted 6 (2 across, 3 down), enter the following commands from the terminal:
It always has to be arranged in a grid, but you can practically have as many as you want.
This work is licensed under a Creative Commons Attribution 4.0 International License .
- search history
- multiple workspaces
- maximum number of files