Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 42

Thread: how do people remember lots of commands..??

  1. #31
    Join Date
    Jan 2007
    Beans
    6,542
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: how do people remember lots of commands..??

    Quote Originally Posted by rushikesh988 View Post
    I have also seen that many users here solving problems only with commands (and yes hats off to the forum staff they just rock with their knowlege base)
    I mean there are hundreds (probably thousands not sure) of commands for linux and with there arguments it becomes the huge list ..


    I have tried using

    but its still a complex thing to remember ...
    Is there is any special trick except practicing it ???
    They may well work as sysadmins and such, and are doing this stuff all day every day for a job.

  2. #32
    Join Date
    Apr 2009
    Location
    Saskatoon Canada
    Beans
    980
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: how do people remember lots of commands..??

    Quote Originally Posted by stinkeye View Post
    On using bash history.
    Running these 2 commands...
    Code:
    echo "\"\e[5~\": history-search-backward" >> ~/.inputrc
    echo "\"\e[6~\": history-search-forward" >> ~/.inputrc
    Binds pageup to history-search-backward....Binds pagedown to history-search-forward.

    So if I enter sudo dpkg I can cycle through all the history commands starting with sudo dpkg, using pageup and pagedown.
    Nice.

    I wanted to read about these. I found and followed the further suggestions in the link below, but stopped at the GREP color features:

    https://wiki.ubuntu.com/Spec/EnhancedBash
    One Psychiatrist's Definition of Insanity:"Knowing what one should do and doing differently"

  3. #33
    Join Date
    Jun 2008
    Location
    Mumbai
    Beans
    223
    Distro
    Ubuntu

    Re: how do people remember lots of commands..??

    Quote Originally Posted by Paqman View Post
    They may well work as sysadmins and such, and are doing this stuff all day every day for a job.
    ohh i see

  4. #34
    Join Date
    Apr 2011
    Location
    Maryland
    Beans
    1,461
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: how do people remember lots of commands..??

    Quote Originally Posted by stinkeye View Post
    On using bash history.
    Running these 2 commands...
    Code:
    echo "\"\e[5~\": history-search-backward" >> ~/.inputrc
    echo "\"\e[6~\": history-search-forward" >> ~/.inputrc
    Binds pageup to history-search-backward....Binds pagedown to history-search-forward.

    So if I enter sudo dpkg I can cycle through all the history commands starting with sudo dpkg, using pageup and pagedown.

    How did I know this? Looked in my 4 years worth of gnotes.
    Wow! Excellent trick. Didn't know about that, but now it's added to my system. This is extremely useful!

  5. #35
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,636
    Distro
    Ubuntu

    Re: how do people remember lots of commands..??

    Quote Originally Posted by stinkeye View Post
    On using bash history.
    Running these 2 commands...
    Code:
    echo "\"\e[5~\": history-search-backward" >> ~/.inputrc
    echo "\"\e[6~\": history-search-forward" >> ~/.inputrc
    Binds pageup to history-search-backward....Binds pagedown to history-search-forward.

    So if I enter sudo dpkg I can cycle through all the history commands starting with sudo dpkg, using pageup and pagedown.

    How did I know this? Looked in my 4 years worth of gnotes.
    Thank you, that's fairly awesome

  6. #36
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,008
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how do people remember lots of commands..??

    Like, I could ever get so good to remember something like this:

    Code:
    sudo dpkg --get-selections | grep '[[:space:]]install$='| awk '{print $1}' > installedpackages
    That's the thing - you don't have to remember a line like that -- as somebody already mentioned : it's like learning a language

    the only thing worth remembering there is that 'dpkg --get-selections' will list software you installed through dpkg. Or remember even less - that dpkg has an option to list installed software (and you can look up which one that was whenever you need it).

    The rest -- pipes, grep, awk, output redirection ... -- is stuff you pick up as you go, and if you understand what they are, you'll figure out a way to combine them and build that command as needed

    FWIW,
    Code:
    dpkg --get-selections | grep  'install$' | cut -f1
    or even
    Code:
    dpkg --get-selections | cut -f1
    would work just as well

  7. #37
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: how do people remember lots of commands..??

    Quote Originally Posted by dannyboy79 View Post
    simply put, the commands you use and practice frequently you won't ever forget.
    Pretty much this. I know I've pretty much memorized some of the commands I use often, and if I have a whole load of commands I need to run to accomplish a specific task (such as reinstalling my raid drivers via dkms), I write a script for it.

    Quote Originally Posted by Jakin View Post
    Over time, its like remembering anything else.. Complex commands that i might use are also in history, if for some reason i had command-block that day.
    History and scripts are (only) the way to fly.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  8. #38
    Join Date
    Jun 2008
    Location
    Mumbai
    Beans
    223
    Distro
    Ubuntu

    Re: how do people remember lots of commands..??

    Quote Originally Posted by CharlesA View Post

    History and scripts are (only) the way to fly.


    totally agree

  9. #39
    Join Date
    Jul 2011
    Location
    /Europe/Netherlands
    Beans
    380
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: how do people remember lots of commands..??

    Quote Originally Posted by stinkeye View Post
    On using bash history.
    Running these 2 commands...
    Code:
    echo "\"\e[5~\": history-search-backward" >> ~/.inputrc
    echo "\"\e[6~\": history-search-forward" >> ~/.inputrc
    Binds pageup to history-search-backward....Binds pagedown to history-search-forward.

    So if I enter sudo dpkg I can cycle through all the history commands starting with sudo dpkg, using pageup and pagedown.

    How did I know this? Looked in my 4 years worth of gnotes.
    Where should those commands go, just enter them once in the terminal?
    "I believe humans get a lot done, not because we're smart, but because we have thumbs so we can make coffee." --Flash Rosenberg
    formerly 'known' as Euroman

  10. #40
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: how do people remember lots of commands..??

    Quote Originally Posted by Euroman View Post
    Where should those commands go, just enter them once in the terminal?
    Yup. All they do is add a new keyboard binding to the configuration file for (bash?) your shell.

Page 4 of 5 FirstFirst ... 2345 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •