• Fun Linux Commands

    From Black Panther@77:1/102 to All on Fri Jul 5 23:18:22 2019

    Here are some interesting Linux terminal commands that you probably
    didn't know about.

    history

    This command will give you a history of the last commands have been. On
    my system it shows the last 2000 commands typed into the terminal.

    history x

    This will show the last x number of commands typed into the terminal.

    history | grep command

    With this command, you can search for something like 'ping', by using:

    history | grep ping

    history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort –n


    This command will give you a sorted list of frequent commands with the number of times each one has been used.

    (https://vitux.com/how-to-see-the-termina-commands-you-use-most-on-linux/)

    There are also a bunch of fun programs that can be obtained through the different repositories. Here is a short list of ones that I've found:

    sl

    We can all admit to incorrectly typing the 'ls' command in the terminal.
    It's reminiscent of our DOS days, and typing idr instead of dir. Well,
    the 'sl' program will show an animated ascii steam train chugging across
    the screen.

    fortune

    I think anyone who has ever used Linux knows about this one. Just type in ./fortune, in the terminal, and it will give you your fortune.

    cowsay

    Cowsay is another one that most people know about already. I like to combine fortune and cowsay with the 'fortune | cowsay' to get a fun fortune.

    _________________________________________
    / You're working under a slight handicap. \
    \ You happen to be human. /
    -----------------------------------------
    \ ^__^
    \ (oo)\_______
    (__)\ )\/\
    ||----w |
    || ||

    boxes (apt install boxes)

    This is another fun one. It will take whatever text you give it, and put it into a text box from the terminal. Just use the pipe to redirect it, such
    as: 'cat greeting.txt | boxes -d diamonds -a c'

    /\ /\ /\
    /\//\\/\ /\//\\/\ /\//\\/\
    /\//\\\///\\/\//\\\///\\/\//\\\///\\/\ //\\\//\/\\///\\\//\/\\///\\\//\/\\///\\
    \\//\/ \/\\//
    \/ \/
    /\ I'm wishing you all a /\
    //\\ joyous holiday season //\\
    \\// and a Happy Gnu Year! \\//
    \/ \/
    /\ /\
    //\\/\ /\//\\ \\///\\/\//\\\///\\/\//\\\///\\/\//\\\//
    \/\\///\\\//\/\\///\\\//\/\\///\\\//\/
    \/\\//\/ \/\\//\/ \/\\//\/
    \/ \/ \/

    or 'echo "I am a dog" | boxes -d dog -a c'

    __ _,--="=--,_ __
    / \." .-. "./ \
    / ,/ _ : : _ \/` \
    \ `| /o\ :_: /o\ |\__/
    `-'| :="~` _ `~"=: |
    \` (_) `/
    .-"-. \ | / .-"-.
    .---{ }--| /,.-'-.,\ |--{ }---.
    ) (_)_)_) \_/`~-===-~`\_/ (_(_(_) (
    ( I am a dog )
    ) ( '---------------------------------------'

    figlet (apt install figlet)

    This is one that's been around for awhile as well. It will take any text
    you send it, and print it to the screen in a banner type font. Here's an example:

    echo "Hello world" | figlet

    _ _ _ _ _ _
    | | | | ___| | | ___ __ _____ _ __| | __| |
    | |_ |/ _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` |
    | _ | __/ | | (_) | \ V V / (_) | | | | (_| |
    |_ |_\___|__|\___/ \_/\_/ \___/|_ |_\__,_|


    cmatrix (apt install cmatrix)

    This one will turn your computer monitor into one of the monitors from the movie Matrix. You will see the green letters falling from the top. There
    are even options to change the color, speed, etc. This can even be set up
    as you screensaver.

    The last one I'll tell you about, was probably very popluar back when movies such as Mission Impossible first came out. This one will make your screen
    look as though you are a Hollywood hacker. One word of caution with this
    one. Turn your speakers down. There is delayed audio that is very loud!

    This one is called hollywood. (apt install hollywood)


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Nelgin@77:1/119 to Black Panther on Thu Jul 25 03:48:38 2019
    Black wrote:

    Here are some interesting Linux terminal commands that you probably
    didn't know about.

    history

    This command will give you a history of the last commands have been. On
    my system it shows the last 2000 commands typed into the terminal.

    history x

    This will show the last x number of commands typed into the terminal.

    history | grep command

    With this command, you can search for something like 'ping', by using:

    history | grep ping

    history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort ΓÇôn


    This command will give you a sorted list of frequent commands with the number
    of times each one has been used.

    (https://vitux.com/how-to-see-the-termina-commands-you-use-most-on-linux/)

    There are also a bunch of fun programs that can be obtained through the different repositories. Here is a short list of ones that I've found:

    sl

    We can all admit to incorrectly typing the 'ls' command in the terminal. It's reminiscent of our DOS days, and typing idr instead of dir. Well,
    the 'sl' program will show an animated ascii steam train chugging across
    the screen.

    fortune

    I think anyone who has ever used Linux knows about this one. Just type in ./fortune, in the terminal, and it will give you your fortune.

    cowsay

    Cowsay is another one that most people know about already. I like to combine fortune and cowsay with the 'fortune | cowsay' to get a fun fortune.

    _________________________________________
    / You're working under a slight handicap. \
    \ You happen to be human. /
    -----------------------------------------
    \ ^__^
    \ (oo)\_______
    (__)\ )\/\
    ||----w |
    || ||

    boxes (apt install boxes)

    This is another fun one. It will take whatever text you give it, and put it into a text box from the terminal. Just use the pipe to redirect it, such as: 'cat greeting.txt | boxes -d diamonds -a c'

    /\ /\ /\
    /\//\\/\ /\//\\/\ /\//\\/\
    /\//\\\///\\/\//\\\///\\/\//\\\///\\/\ //\\\//\/\\///\\\//\/\\///\\\//\/\\///\\
    \\//\/ \/\\//
    \/ \/
    /\ I'm wishing you all a /\
    //\\ joyous holiday season //\\
    \\// and a Happy Gnu Year! \\//
    \/ \/
    /\ /\
    //\\/\ /\//\\ \\///\\/\//\\\///\\/\//\\\///\\/\//\\\//
    \/\\///\\\//\/\\///\\\//\/\\///\\\//\/
    \/\\//\/ \/\\//\/ \/\\//\/
    \/ \/ \/

    or 'echo "I am a dog" | boxes -d dog -a c'

    __ _,--="=--,_ __
    / \." .-. "./ \
    / ,/ _ : : _ \/` \
    \ `| /o\ :_: /o\ |\__/
    `-'| :="~` _ `~"=: |
    \` (_) `/
    .-"-. \ | / .-"-.
    .---{ }--| /,.-'-.,\ |--{ }---.
    ) (_)_)_) \_/`~-===-~`\_/ (_(_(_) (
    ( I am a dog )
    ) ( '---------------------------------------'

    figlet (apt install figlet)

    This is one that's been around for awhile as well. It will take any text
    you send it, and print it to the screen in a banner type font. Here's an example:

    echo "Hello world" | figlet

    _ _ _ _ _ _
    | | | | ___| | | ___ __ _____ _ __| | __| |
    | |_ |/ _ \ | |/ _ \ \ \ /\ / / _ \| '__| |/ _` |
    | _ | __/ | | (_) | \ V V / (_) | | | | (_| |
    |_ |_\___|__|\___/ \_/\_/ \___/|_ |_\__,_|


    cmatrix (apt install cmatrix)

    This one will turn your computer monitor into one of the monitors from the movie Matrix. You will see the green letters falling from the top. There
    are even options to change the color, speed, etc. This can even be set up
    as you screensaver.

    The last one I'll tell you about, was probably very popluar back when movies such as Mission Impossible first came out. This one will make your screen look as though you are a Hollywood hacker. One word of caution with this one. Turn your speakers down. There is delayed audio that is very loud!

    This one is called hollywood. (apt install hollywood)


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)

    Some of these are obviously not going to work unless you install said
    package and the commands to run them are wrong.

    One of my favorite is the paste command which takes two lists and join them together line by line. Like taking a list of IPs and a list of hostnames and joining the two.

    tac is similar to cat but displays a file in reverse, line by line.

    units if installed will convert between hundreds of different types of distance, weights, measurements and the like.
    --- SBBSecho 3.07-Linux
    * Origin: End Of The Line BBS - endofthelinebbs.com (77:1/119)
  • From Black Panther@77:1/102 to Nelgin on Thu Jul 25 12:13:46 2019
    On 25 Jul 2019, Nelgin said the following...

    Some of these are obviously not going to work unless you install said package and the commands to run them are wrong.

    Oh yes. I just wanted to let people know some of the fun commands available.

    One of my favorite is the paste command which takes two lists and join them together line by line. Like taking a list of IPs and a list of hostnames and joining the two.

    That could come in handy...

    tac is similar to cat but displays a file in reverse, line by line.

    I think I'm going to look for that one...

    units if installed will convert between hundreds of different types of distance, weights, measurements and the like.

    I usually just open a browser window to convert. It could be handy to do it from the terminal.

    Thanks for sharing! :)


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com - (77:1/102)
  • From Dumas Walker@77:1/115 to NELGIN on Thu Jul 25 19:52:00 2019
    units if installed will convert between hundreds of different types of distance, weights, measurements and the like.

    Opening a terminal is quicker than opening a browser and googling it.
    Thanks!

    ---
    * SLMR 2.1a * Limit Congress to 2 terms: one in office, one in jail!
    * Origin: capitolcityonline.net * Telnet/SSH:2022/HTTP (77:1/115)
  • From Netsurge@77:1/100 to Dumas Walker on Thu Jul 25 23:27:52 2019
    Opening a terminal is quicker than opening a browser and googling it.

    I still open up a terminal and use bc when I need a calculator. I'm an old school kinda guy and tend to use keyboard shortcuts for everything I do. Use the mouse only when I absolutely have to.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness |11SciNet |03ftn hq |08% |07https://diskshop.ca/scinet

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Dumas Walker@77:1/115 to NETSURGE on Fri Jul 26 20:29:00 2019
    I still open up a terminal and use bc when I need a calculator. I'm an old school kinda guy and tend to use keyboard shortcuts for everything I do. Use the mouse only when I absolutely have to.

    I have never used that one before, but it does the job. :)

    ---
    * SLMR 2.1a * Shh! Be vewy qwiet! I'm hunting wuntime ewwows!
    * Origin: capitolcityonline.net * Telnet/SSH:2022/HTTP (77:1/115)
  • From Netsurge@77:1/100 to Dumas Walker on Fri Jul 26 23:23:10 2019
    I have never used that one before, but it does the job. :)

    When you started your life off in front of machines that didn't have a mouse like the Vic20 and C64, keyboard short cuts stay with you forever.

    |15frank |08// |15netsurge
    |07disksh0p|08!|07bbs |08% |07bbs.diskshop.ca |08% |07mystic goodness |11SciNet |03ftn hq |08% |07https://diskshop.ca/scinet

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: % disksh0p!bbs % bbs.diskshop.ca % SciNet ftn hq % (77:1/100)
  • From Dumas Walker@77:1/115 to NETSURGE on Sat Jul 27 08:48:00 2019
    When you started your life off in front of machines that didn't have a mouse like the Vic20 and C64, keyboard short cuts stay with you forever.

    Sure does. At home, I did not use a machine with a mouse on a regular
    basis until I installed linux, circa 2000, which was about 20 years after getting my first home computer, a TI-99/4A. :)

    ---
    * SLMR 2.1a * Don't be sexist! Chicks hate that.
    * Origin: capitolcityonline.net * Telnet/SSH:2022/HTTP (77:1/115)