Stupidest terminal commands?

If it doesn't relate to Debian, but you still want to share it, please do it here

Stupidest terminal commands?

Postby bedtime » 2018-07-28 13:02

This is just a silly post if anyone cares to join in.

Often when reading tutorials, I see examples of commands used in ways that make little sense or are generally not useful. It was bumping into such a demonstration yesterday that inspired this post...

If you have a command, a command with parameters, or a small script, which is, well, a trifle daft :roll:, please feel free to post it.

Here is mine:
Code: Select all
$ sleep 10&; foo bar


Note: Please do not post commands that would be harmful to the someones system; all commands should be able to be executed safely!
OS: Debian GNU/Linux (Buster—testing); Kernel: 4.16.0-2-amd64; Shell: sh; WM: i3
Machine: HP ProDesk 600 G3—i7-7700, 8GB RAM, 256 SSD, Intel HD Graphics 630

bedtime
 
Posts: 81
Joined: 2012-12-16 19:34

Re: Stupidest terminal commands?

Postby 4D696B65 » 2018-07-28 13:08

Using sudo with commands that do not require root privileges. I'm sure we've all seen many of those.
User avatar
4D696B65
 
Posts: 2191
Joined: 2009-06-28 06:09

Re: Stupidest terminal commands?

Postby bedtime » 2018-07-28 13:14

4D696B65 wrote:Using sudo with commands that do not require root privileges. I'm sure we've all seen many of those.

Lets try to display an example for each.

So, perhaps:
Code: Select all
$ sudo top
OS: Debian GNU/Linux (Buster—testing); Kernel: 4.16.0-2-amd64; Shell: sh; WM: i3
Machine: HP ProDesk 600 G3—i7-7700, 8GB RAM, 256 SSD, Intel HD Graphics 630

bedtime
 
Posts: 81
Joined: 2012-12-16 19:34

Re: Stupidest terminal commands?

Postby ruffwoof » 2018-07-28 22:46

Linux/BSD can show different levels of self awareness

Code: Select all
ar m God

Might show "God does not exist" or "creating God"

But not sexually aware

Code: Select all
make love

Don't know how to make love
Was dual booting Debian and OpenBSD, but solely OBSD now.
Acer Aspire M3201 (2GB), Radeon HD3200, AMD Phenom X4
ruffwoof
 
Posts: 258
Joined: 2016-08-20 21:00

Re: Stupidest terminal commands?

Postby Head_on_a_Stick » 2018-07-29 20:15

I despise superfluous commands, useless use of `cat` is the prime example of this:
Code: Select all
cat foo | grep bar

Rather than
Code: Select all
grep bar foo

Or using `echo` & redirection rather than a simple here string (or document), so this:
Code: Select all
echo foo > bar

instead of
Code: Select all
tee bar <<<"foo"
E Pluribus Unix
User avatar
Head_on_a_Stick
 
Posts: 7777
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Stupidest terminal commands?

Postby debiman » 2018-07-31 12:14

ruffwoof wrote:
Code: Select all
make love

i always liked
Code: Select all
man woman
:mrgreen:

...but here's a more serious one:
i once tried to set up a caldav server on my kitchen server - radicale, to be precise, with setup instructions.
at some point it instructs me to add a radicale user, with / as home!
... after a while i decided that i don't like radicale so much, so i deleted the radicale user - i used the userdel command with the -f switch (that also removes the home directory).
guess what happened!!!
all my music was on that same partition.
i'm still recovering from that, almost a year later.
User avatar
debiman
 
Posts: 2601
Joined: 2013-03-12 07:18


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable