You wish to submerge into the Linux OS with absolutely no prior exposure. Where do you start? How do you choose the distribution from all this never-ending choice? The Window Manager? What terminal commands need you adapt? How does everything interact?
Better yet, you probably only care for the essential elements to make you functional. You don’t want elaborate guides and extensive tutorials. They’re boring and not the best use of time, or so I deem. We deal in usability, not academic rigorousness.
As such, I’ll aim to provide precisely those initial steps necessary to build momentum, emphasizing the 80/20 of time-investment vs benefit.
Choose whatever you want that’s not specialized or catered for specific use cases. Otherwise, it doesn’t matter.
Beginners often settle for some Debian variant, such as Ubuntu, Mint, or the very Debian. You could also begin with Arch Linux (my laptop distro) or a variant, although you’d probably face greater initial confusion.
It doesn’t matter because you can severely customize most aspects that make up a distribution. With time, you can augment, strip, and carve one distribution in spirit of another.
Of greater concern are the fundamental terminal commands, the core applications you’ll use all the time, and the basic file system layout. The visual aspect is merely a façade. (See also this commentary of mine.)
Without the specifics of the X framework (the Linux visual layer), a Window Manager is the graphical environment you interact with to launch applications or consoles for terminal interaction.
Similar story. It doesn’t matter because the subtle differences will bear very little impact on your initial productivity. Very little.
Your initial setup, irrespective of distro and WM, will be a sloppy hell of a mess anyway. Trial-and-error learning will bear greater weight than whatever marginal conveniences a WM offers.
For the record, WMs vary from heavyweight (ie Gnome, KDE), to light-weight (Awesome, i3, xfce), to ultra-minimalist (dwm), although the choice expands to hundreds. Each functions according to a certain paradigm. I’ve used the Awesome WM for many years.
A distribution typically comes preconfigured for a specific WM. Go with that for now. WMs are swappable with incredible ease anyway.
Basic terminal functionality
While the WM enables you to launch applications and conduct certain operations graphically, you will remain severely handicapped and oblivious to the underlying power if you evade the terminal.
Although the Linux/Unix ecosystem features hundreds of just the core commands and shell functions, a very small number will account for most that you’ll initially care for:
CTRL+Rto navigage the command line history.
CTRL+Cto abandon a running command.
You can typically launch the terminal by a quickly accessible icon/button/menu option in your WM, or via a shortcut key (often
For the command syntax,
--helpoption often provides basic command documentation (ex:
man <command>launches the man page. man pages constitute the Linux de-facto Linux help system.
- Quick internet search.
Modify your shell prompt
pwd command indicates what directory you’re in. But it’s quiet ludicrous to have to type this when you can simply reconfigure your shell prompt (the preceding portion to the line where you type your terminal commands) to always include that information.
Since you’re probably using the Bash shell, open the configuration file
~/.bashrc with whatever editor at your disposal, and insert the following somewhere in there:
In this case, your shell prompt will display
Alternatively, the color version, per my present setting:
You’ll likely use a package manager for most software installation. In Debian-based systems that’s APT. In Arch that’s pacman. In the first case,
sudo apt-get install <package> installs the respective package. In the latter case,
sudo pacman -S <package>.
The crucial applications and packages should likely already be present. That includes some web browser, desktop email client, file manager. Plenty of alternate options exist, and I recommend the terminal way of doing things when possible, but for the short-term you should be set.
I can’t recommend VIM enough. An alternative power-editor of cult status is Emacs, but I can’t speak much of it.
If accustomed to a monkey point-and-click and arrow-key type of editing, VIM might change your life. But it demands a learning curve. Some options to quickly attain the basics:
- Launch a built-in tutorial via
vimtutor. It’s just a text file loaded in VIM that you follow and simultaneously interact with.
- Endless sheets from the myriads you can find via a quick web search. How about this, this, or this.
- Inside VIM,
:help commandlaunches the respective built-in documentation.
It is insane the available array of Linux-related hacks, helpers, power-tools, shortcuts, scripts, etc. But the core fundumentals haven’t much varied for all intensive purposes. These beginning steps should get you started.
Questions, comments? Connect.