Linux Shortcuts Every Newbie Should Know
Linux Shortcuts Every Newbie Should Know
One thing that Linux is not so popular of is that it has quite a few keyboard shortcuts that every Linux user should know. Here are a few examples of Linux shortcuts that will help anyone who uses Linux.
<Ctrl><Alt><F1>
Switch to the first text terminal. Under Linux you can have several (6 in standard setup) terminals opened at the same time.
<Ctrl><Alt><Fn> (n=1..6)
Switch to the nth text terminal.
tty
Print the name of the terminal in which you are typing this command.
<Ctrl><Alt><F7>
Switch to the first GUI terminal (if X-windows is running on this terminal).
<Ctrl><Alt><Fn> (n=7..12)
Switch to the nth GUI terminal (if a GUI terminal is running on screen n-1). By default, nothing is running on terminals 8 to 12, but you can run another server there.
<Tab>
(In a text terminal) Autocomplete the command if there is only one option, or else show all the available options.
<ArrowUp>
Scroll and edit the command history. Press <Enter> to execute.
<Shift><PgUp>
Scroll terminal output up. Work also at the login prompt, so you can scroll through your bootup messages.
<Shift><PgDown>
Scroll terminal output down.
<Ctrl><Alt><+>
(in X-windows) Change to the next X-server resolution (if you set up the X-server to more than one resolution). For multiple resolutions on my standard SVGA card/monitor, I have the following line in the file /etc/X11/XF86Config (the first resolution starts on default, the largest determines the size of the “virtual screen”):
Modes “1024×768″ “800×600″ “640×480″ “512×384″ “480×300″ “400×300″ “1152×864″
<Ctrl><Alt><->
(in X-windows) Change to the previous X-server resolution.
<Ctrl><Alt><BkSpc>
(in X-windows) Kill the current X-windows server. Use if the X-windows server crushes and cannot be exited normally.
<Ctrl><Alt><Del>
Shut down the system and reboot. This is the normal shutdown command for a user at the text-mode console. Don’t just press the “reset” button for shutdown!
<Ctrl>c
Kill the current process (mostly in the text mode for small applications).
<Ctrl>d
Log out from the current terminal. See also the next command.
<Ctrl>d
Send [End-of-File] to the current process. Don’t press it twice else you also log out (see the previous command).
How to Use the alias Command
Let us say you execute the command ‘ls –alh’ every time you need a long listing of files and directories. Now you want a shortcut to do this. Fortunately, you can do so by using the command alias.
The alias command is useful for creating shortcuts for long commands or for correcting typing mistakes.
To create a shortcut for ls, you can do this:
$ alias ls=”ls -alh”
Now, everytime you execute ls command, it will be run as if you are executing the whole ls –alh command. Be reminded that this will replace the existing ls command. You may use a different name for the new shortcut like so:
$ alias ll=”ls -alh”
However, once you exit the current terminal, the alias will not be saved. To make the alias permanent, you may edit the .bashrc file in user’s home directory:
$ vi ~rai/.bashrc
Then insert the alias command after the line that says #system wide functions and aliases. Save and exit.
That should do it!
Unpopular But Useful Windows Shortcut Keys
I may be a Linux user but from time to time, I use Windows since I have it as my workstation OS and my Linux runs as VM. Then I found these tips from technotraits.com that should make my work in my Windows machine a little faster and more efficient.
The best thing about these shortcuts? Some are also applicable to Linux machines.
Windows Explorer
1. F2
Rename files by highlighting the file and pressing F2. Same goes to Linux.
2. F6
Lets you move across various panes of Windows Explorer.
3. Alt + Enter/ Alt+Double Click
Highlight a file in Windows Explorer and hit Alt+Enter or Alt+Double Click to view the file properties.
4. SHIFT+Right Click
Show the right context menu listing alternative commands.
5. SHIFT+Double Click
Runs the alternate default command (the second item on the right context menu).
6. BACKSPACE
Move one folder up.
7. Ctrl+Double Click
Open a folder in a new explorer window.
8. SHIFT+Click Close Button
When using Shortcut #7, pressing Shift while closing the window will close the parent windows as well.
9. SHIFT
Autorun will not start if Shift is pressed while inserting CD/DVD.
10. F3
Hit F3 in Explorer and Search will open to search for files and folders.
11. Ctrl
Press Ctrl Key and drag files to another folder to copy the selected files.
12. Ctrl+Shift
Press Ctrl+Shift and drag a file to another location and shortcut will be created.
13. ALT+SPACE
Open up the active window’s system menu.
Windows Management
14. CTRL+ESC
Open the Start Menu.
15. Windows Key+M
Minimize all open windows.
16. Shift+Windows Key+M:
Maximize all open windows.
17. Windows Key+D
Same with Shortcut #15
18. ALT+F6
Press F6 to switch between windows of the same program.
19. F5
Refresh. Same with Firefox, IE and Linux
20. CTRL+TAB/CTRL+SHIFT+TAB
Switch between tabs of properties window.
Miscellaneous
21. SHIFT+F10
Opens up right context menu. Similar with right click.
22. Windows Key+Pause/Break
Open System Properties Box.
23. Windows Key+L
Lock your current screen.
I tried most of the commands here and they work! If you find these shortcuts useful or otherwise, you can use the comment form below.
Search PinoyTux
Subscribe to Email Feeds
Blog Lounge
Popular Posts
Recent Posts
Drop your Card Here
Recent Comments
- Mela
on Cebu Pacific Sucks - madcSPYnX
on AMA Desktop: Linux Made in Philippines - David Fortier
on Cebu Pacific Sucks - David Fortier
on Cebu Pacific Sucks - Mr. Walkman
on Shopping for Mobile Phone: Sony Ericsson Phones Only








