Results 1 to 4 of 4

Thread: An easy guide to navigate Terminal for Beginners-Intermediate users

  1. #1
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    An easy guide to navigate Terminal for Beginners-Intermediate users

    An easy guide to navigate Terminal for Beginners-Intermediate users

    in the words of Gandhi; Donald Duck and Joseph Stalin [alledgedly]

    "...if navigation is smooth you will have much more fun"



    Many of you will know this; clearly this is for the ones who do not yet
    If you have additional useful adjuncts please feel free to comment...

    navigate terminal

    ctrl+a to the start of writing
    ctrl+e to the end of writing
    alt+b goes back one word at a time
    alt+f moves forward one word at a time.
    ctrl+b goes back one letter at a time
    ctrl+f goes forward one letter at a time
    ctrl+u removes command left of cursor
    ctrl+k removes command right of cursor

    ctrl+w deletes the word before the cursor.
    alt+c capitalizes letter where cursor is and moves to end of word


    ctrl+l clears the terminal output
    when a page is too busy and you want a clean slate ctrl+l followed with ctrl+u clears everything


    Shift + Ctrl + C = copy the highlighted command to the clipboard.
    Shift + Ctrl + V (or Shift + Insert) = pastes the contents of the clipboard.



    "history" shows you your most recent commands


    say you want to use 1951 command enter
    !1951

    very handy see
    man history
    for full info




    incremental history searching


    from

    in terminal enter:



    Code:
    gksudo gedit  ~/.inputrc

    then copy paste and save


    Code:
    "\e[A": history-search-backward
    "\e[B": history-search-forward
    "\e[C": forward-char
    "\e[D": backward-char

    FROM now on [and many agree this is the most useful terminal tool] save you a lot of writing/memorizing...

    all you need to do to find a previous command is to enter say the first 2 or 3 letters and upward arrow will take you there quickly


    say i want:

    Code:
    for f in *.mid ; do timidity "$f"; done
    all i need to do is enter
    Code:
    fo
    and hit upward arrow command will soon appear
    Last edited by shantiq; November 24th, 2012 at 08:54 PM.
    Linux is Latin for off-the-beaten-track
    ShanArt XmmsPurple Piper

  2. #2
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: An easy guide to navigate Terminal for Beginners-Intermediate users

    Quote Originally Posted by shantiq View Post
    in terminal enter:

    Code:
    sudo gedit  ~/.inputrc
    Ahem! Cough, cough.

    https://help.ubuntu.com/community/Ro...Graphical_sudo

    You should never use normal sudo to start graphical applications as Root. You should use gksudo (kdesudo on Kubuntu) to run such programs.
    I'll leave you to edit your post.

    Afterthought: we are encouraging people to put howtos on the community wiki - the forum is not the best place for this. You have some information which I believe is not on this wiki page:

    https://help.ubuntu.com/community/UsingTheTerminal

    Have you considered getting involved in wiki work?
    Last edited by coffeecat; November 24th, 2012 at 07:28 PM.
    Ubuntu 15.04 Desktop Guide - Ubuntu 14.04 Desktop Guide - Forum Guide to BBCode - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

  3. #3
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: An easy guide to navigate Terminal for Beginners-Intermediate users

    thanx cat

    changed to gksudo


    more than happy to put it in wiki; will get on the case...

    edit: relevant bits added
    Last edited by shantiq; November 24th, 2012 at 10:01 PM.
    Linux is Latin for off-the-beaten-track
    ShanArt XmmsPurple Piper

  4. #4
    Join Date
    Jun 2006
    Location
    UK
    Beans
    Hidden!
    Distro
    Ubuntu 15.04 Vivid Vervet

    Re: An easy guide to navigate Terminal for Beginners-Intermediate users

    Quote Originally Posted by shantiq View Post
    edit: relevant bits added
    Thanks!
    Ubuntu 15.04 Desktop Guide - Ubuntu 14.04 Desktop Guide - Forum Guide to BBCode - IRC #ubuntuforums

    Member: Not Canonical Team

    Please do not PM me about your forum account unless you have been asked to. The correct place to contact an admin about your account is here.

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
  •