What is the story behind the name of many commands

Chat about Linux in general
Post Reply
SprinterDriver
Level 3
Level 3
Posts: 156
Joined: Sun Jan 25, 2015 3:35 pm
Location: Norway

What is the story behind the name of many commands

Post by SprinterDriver » Mon Jun 19, 2017 4:34 pm

Hi all.

I've bearly scratched the surface of Linux, playing around with some different distros lately. Now it probably seems that I got a question for a problem I cannot solve, no I got a kind of stupid one question, hard to compress in an meaningfull sentence and is of no technically character - I think not.

Many commands as lshw, cp mv is remembered easilly because I easilly see the short form of "list hardware", "copy", "move", etc. But then there is commands like "Inxi", "chmod" and "htop" that I just remember because those are very short in terms of characters. What thumb rules can be used to remember commands?
So I got this bright idea. But when I tried to grab the light bulb, I did not hurt my hands as expected from a warm bulb, because it turned out to be one of those LED bulbs.

User avatar
Flemur
Level 15
Level 15
Posts: 5661
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: What is the story behind the name of many commands

Post by Flemur » Mon Jun 19, 2017 4:49 pm

SprinterDriver wrote:What thumb rules can be used to remember commands?
Pretty much by using them, I think.

Here's a list of bash commands, which are the standard commands you'll get whenever you have a terminal running the bash shell (namely any linux with bash):
https://ss64.com/bash/
Note that lshw and inxi aren't there - other non-bash commands are programs that are somewhere in your $PATH.
IIRC, Ubuntu, e.g., doesn't supply inxi by default.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
xenopeek
Level 24
Level 24
Posts: 22320
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: What is the story behind the name of many commands

Post by xenopeek » Mon Jun 19, 2017 4:58 pm

SprinterDriver wrote:What thumb rules can be used to remember commands?
There aren't any such rules. Somebody writes a utility and gives it a name. Sometimes easy to remember like cp (copy), mv (move), and chmod (change mode) but sometimes less so like htop (Hisham's top). If you want, keep a cheat sheet for yourself with your frequently used commands. Like with anything else, the more time you spend with it the easier it becomes to remember. I recommend http://write.flossmanuals.net/command-l ... roduction/ to become more comfortable on the terminal and with the available manuals.

Or take some time to study the apropos command. apropos -s 1 process for example will list all commands that do something with processes. You'll find the usual suspects like htop, ps, top there. It's not always perfect but apropos will usually let you find some command you forget the name of but remember the function of. See man man for explanation of the manual sections. Usually you will find commands in section 1 hence I make that explicit so that you don't get all the system and library calls (in sections 2 and 3) that have something to do with processes.

You can of course also look through your command history (with command history).
Image

Cosmo.
Level 23
Level 23
Posts: 17830
Joined: Sat Dec 06, 2014 7:34 am

Re: What is the story behind the name of many commands

Post by Cosmo. » Mon Jun 19, 2017 5:43 pm

Flemur wrote:Pretty much by using them, I think.
In other words: Learning by doing.

User avatar
Portreve
Level 6
Level 6
Posts: 1070
Joined: Mon Apr 18, 2011 12:03 am
Location: Florida
Contact:

Re: What is the story behind the name of many commands

Post by Portreve » Mon Jun 19, 2017 6:40 pm

If you want your mind blown a bit further, SprinterDriver, try this...
sudo apt-get moo
Everything is in hand. With this tapestry... and with patience, there is nothing one cannot achieve.

No hamsters were harmed in the authoring of this post.

Penn
Level 5
Level 5
Posts: 739
Joined: Tue Jun 10, 2014 1:12 pm

Re: What is the story behind the name of many commands

Post by Penn » Mon Jun 19, 2017 6:55 pm

Portreve wrote:If you want your mind blown a bit further, SprinterDriver, try this...
sudo apt-get moo
Seen that one a few times. One I don't think gets enough sharing

Code: Select all

fortune
If you don't like the first result, try it again.

User avatar
jimallyn
Level 18
Level 18
Posts: 8026
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: What is the story behind the name of many commands

Post by jimallyn » Mon Jun 19, 2017 7:56 pm

There is no rule to remember them by. I use apropos a lot when I need the command line. And I have installed a couple of Linux command line references on my Android phone.
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

User avatar
slipstick
Level 5
Level 5
Posts: 667
Joined: Sun Oct 21, 2012 9:56 pm
Location: Somewhere on the /LL0 scale

Re: What is the story behind the name of many commands

Post by slipstick » Mon Jun 19, 2017 11:09 pm

I read somewhere that "grep" originally was an abbreviation for "global regular expression print".
In theory, theory and practice are the same. In practice, they ain't.

User avatar
austin.texas
Level 20
Level 20
Posts: 12055
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: What is the story behind the name of many commands

Post by austin.texas » Mon Jun 19, 2017 11:32 pm

Portreve wrote:If you want your mind blown a bit further, SprinterDriver, try this...
sudo apt-get moo

Code: Select all

user@skynet1 ~ $ apt moo
                 (__)
                 (oo)
           /------\/
          / |    ||  
         *  /\---/\
            ~~   ~~  
..."Have you mooed today?".

Code: Select all

user@skynet1:~$ aptitude moo
There are no Easter Eggs in this program.

Code: Select all

user@skynet1:~$ aptitude -v  moo
There really are no Easter Eggs in this program.

Code: Select all

user@skynet1:~$ aptitude -vv  moo
Didn't I already tell you that there are no Easter Eggs in this program?

Code: Select all

user@skynet1:~$ aptitude -vvv  moo
Stop it!

Code: Select all

user@skynet1:~$ aptitude -vvvv  moo
Okay, okay, if I give you an Easter Egg, will you go away?

Code: Select all

user@skynet1:~$ aptitude -vvvvv  moo
All right, you win.

                               /----\
                       -------/      \
                      /               \
                     /                |
   -----------------/                  --------\
   ----------------------------------------------

Code: Select all

user@skynet1:~$ aptitude -vvvvvv  moo
What is it?  It's an elephant being eaten by a snake, of course.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018

SprinterDriver
Level 3
Level 3
Posts: 156
Joined: Sun Jan 25, 2015 3:35 pm
Location: Norway

Re: What is the story behind the name of many commands

Post by SprinterDriver » Tue Jun 20, 2017 2:52 pm

Haha, those easter eggs (btw why cow and where is the tuxie ?) :D

Thanks for answers guys :D
So I got this bright idea. But when I tried to grab the light bulb, I did not hurt my hands as expected from a warm bulb, because it turned out to be one of those LED bulbs.

Hoser Rob
Level 11
Level 11
Posts: 3860
Joined: Sat Dec 15, 2012 8:57 am

Re: What is the story behind the name of many commands

Post by Hoser Rob » Tue Jun 20, 2017 3:01 pm

I've always thought the commands were so short and cryptic because most of those old school Unix guys were the type who prefer typing at arm's length with one finger.

SprinterDriver
Level 3
Level 3
Posts: 156
Joined: Sun Jan 25, 2015 3:35 pm
Location: Norway

Re: What is the story behind the name of many commands

Post by SprinterDriver » Tue Jun 20, 2017 5:00 pm

Hoser Rob wrote:I've always thought the commands were so short and cryptic because most of those old school Unix guys were the type who prefer typing at arm's length with one finger.
It is impossible to write CP on my keybard with one finger without either moving the hand, or using both hands. Well I can use my pinky and index finger and barely reach both, but that is really bad for the typing speed :mrgreen:
So I got this bright idea. But when I tried to grab the light bulb, I did not hurt my hands as expected from a warm bulb, because it turned out to be one of those LED bulbs.

Lysander666
Level 3
Level 3
Posts: 112
Joined: Mon Apr 10, 2017 7:06 am

Re: What is the story behind the name of many commands

Post by Lysander666 » Wed Jun 21, 2017 9:20 am

Cosmo. wrote:
Flemur wrote:Pretty much by using them, I think.
In other words: Learning by doing.
in other words, experiential learning.
Debian 9.4 / Slackware 14.2

Hoser Rob
Level 11
Level 11
Posts: 3860
Joined: Sat Dec 15, 2012 8:57 am

Re: What is the story behind the name of many commands

Post by Hoser Rob » Wed Jun 21, 2017 1:33 pm

SprinterDriver wrote:
Hoser Rob wrote:I've always thought the commands were so short and cryptic because most of those old school Unix guys were the type who prefer typing at arm's length with one finger.
It is impossible to write CP on my keybard with one finger without either moving the hand, or using both hands. Well I can use my pinky and index finger and barely reach both, but that is really bad for the typing speed :mrgreen:
Programmers don't necessarily worry about typing speed. If you're a fast typist and you enter code at fast typing speed your programs will never work.

Post Reply

Return to “Chat about Linux”