CLI cheat sheet

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
DominiqueAlissa

Re: CLI cheat sheet

Post by DominiqueAlissa »

the command line belongs to long gone days: when computers were controlled by typing mystical commands into a black window; when the mouse possessed no power. But for many use cases, the command line is still absolutely indispensable!
Our cheat sheet not only features the most important commands.
Habitual

Re: CLI cheat sheet

Post by Habitual »

Old Ruler wrote:Ex FreeBSD junkies particularly may like to set a couple of lines in ~/.inputrc or ~/.bashrc to get backwards and forwards history search on up and down arrow keys
Love this. It's the first thing in any ~/.bashrc if I have anything to say about it.

Code: Select all

iatest=$(expr index "$-" i)
if [[ $iatest > 0 ]]; then bind '"\e[A": history-search-backward'; fi
if [[ $iatest > 0 ]]; then bind '"\e[B": history-search-forward'; fi
Spud1200

Re: CLI cheat sheet

Post by Spud1200 »

I've been asking questions about the CLI in the Newbie section and just wanted to say thanks a lot for this. I'm busy memorizing some of these commands I have come across as they will be useful.
lovelight

Re: CLI cheat sheet

Post by lovelight »

thank you for all respected members
User avatar
Termy
Level 12
Level 12
Posts: 4254
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: CLI cheat sheet

Post by Termy »

You might find this simple lil program I wrote a lil while back useful: https://github.com/terminalforlife/lsbins It shows all of the available executables (commands, basically) in your PATH. Very useful.

I recommend installing it and optionally keeping it updated with insit, by first installing insit:

Code: Select all

sudo wget -q https://raw.githubusercontent.com/terminalforlife/installit/master/insit -O /usr/bin/insit && sudo chmod +x /usr/bin/insit
Then at any time installing lsbins with it:

Code: Select all

sudo insit lsbins
Or to update lsbins after it's been installed (if updates are available):

Code: Select all

sudo insit -U lsbins
See the following command to see more programs I've written, in-case anything else could be useful to you:

Code: Select all

insit -A
I'm also Terminalforlife on GitHub.
Post Reply

Return to “Tutorials”