1. Download our Official Android App: Forums for Android!

Needs help with the Linux....

Discussion in 'Computers' started by baillou2, Feb 25, 2011.

  1. baillou2

    baillou2 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    63
    Posts:
    240
    Joined:
    Sep 28, 2010

    Sep 28, 2010
    240
    43
    63
    my job sucks....
    The Aloha State on a smallish island...
    So I got no help from the Ubuntu forum - go figure. But I happen to know there are some pretty Linux savvy people around here so my original post on Ubuntu.com was:

    I was thinking how cool it would be to be able to switch between my CLI environment (F1-F6) and the gnome (F7) by simply typing an alias (ex. gohome) on the command line without having to press ctrl+alt F7.
    But I don't know how to write key combos or Function keys for that matter in shell scripts. I tried searching all over the web but can't find anything that explains it.

    Any help would be greatly appreciated.
    thanks in advance, :)
     

    Advertisement

  2. MoodyBlues

    MoodyBlues - Crazy peacock person -
    VIP Member
    Rank:
     #51
    Points:
    453
    Posts:
    3,436
    Joined:
    Jan 27, 2011

    Jan 27, 2011
    3,436
    1,756
    453
    Formerly UNIX/Linux programmer/sysadmin, now disab
    /home/LosAngeles
    It's been DECADES since I even thought about doing anything like this and, frankly, *I* don't think it's worth the bother. Why type a command, like the six characters in gohome, when you could just press [ctrl][alt][fX]?

    However, if you're really intent on doing this, start out by looking at the following; everything you need to know is there!
    Code (Text):
    1. man keymaps
    2. man dumpkeys
    3. man termcap
    4. man terminfo
     
  3. baillou2

    baillou2 Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    63
    Posts:
    240
    Joined:
    Sep 28, 2010

    Sep 28, 2010
    240
    43
    63
    my job sucks....
    The Aloha State on a smallish island...
    Thanks I also discovered chvt.

    I just wanted to know because I got it in my head, and then it begins to nag me until I figure it out.
     
  4. MoodyBlues

    MoodyBlues - Crazy peacock person -
    VIP Member
    Rank:
     #51
    Points:
    453
    Posts:
    3,436
    Joined:
    Jan 27, 2011

    Jan 27, 2011
    3,436
    1,756
    453
    Formerly UNIX/Linux programmer/sysadmin, now disab
    /home/LosAngeles
    I know THAT feeling! That's what used to drive me when I first started programming and administering UNIX systems in the '80s. Every timed I turned around I had another, "hmmmm...I wonder if I can do THAT?" moment, and--since it's *nix--the answer was always a resounding YES! Then came figuring out how. :D
     

Share This Page

Loading...