Suramya.com Banner TopLeft Suramya.com Banner TopCenter Suramya.com Banner TopRight
Home Home
About ME About Me
About India About India
Hotlinks Hotlinks
Linux Related Knowledge Store
Linux Related Linux Related
mirror.suramya.com Mirror(s)
Miscellaneous Stuff Misc Section
My Blog My Blog
Photogallery Photogallery
Scripts Scripts/Programs
Technical Section Technical Section
Contact me Contact Me
Guestbook Sign my Guestbook
My Resume My Resume


Linux Tips: Introduction

Any new comer to the wonderfull world of Linux can be easily intimidated by the Techno-Babble of the Guru's and most struggle with the tools available to them in Linux before they are able to be productive with them. In this section I will attempt to make your life a bit easier by sharing some of my experiences with Linux and some of the tips I have found to be useful to allow me to be more productive in Linux. This page started off as a means for me to keep track of the various Tips and Hints I kept finding over the web and from more experienced friends. Hopefully you will find some of this stuff useful.

I would esp like to thank the good folks at JustLinux.com, and would like to put it in the record that a lot of these Tips were copied from their forums. And since I have given them credit this is no longer plagiarism

Finally a warning. I am not responsible if you manage to mess-up your system when using any of the stuff on this page. I have tested these commands on my system (RedHat Linux 7.3) but they might work slightly differently on your system. Meaning? Make a good backup before you try any of the following, and don't complain to me if it doesn't work, but if you have some tips you like to share with the rest of us let me know and I will put it in.

Linux Tips
Command Purpose Description
<Ctrl><Alt> F1
[Press and hold <Ctrl>, <Alt> and F1 together]
Switchs to a command line fast. Use this key combination to switch to a virtual terminal in Linux. To switch back to the GUI press F7. F1 - F6 will take you to a text terminal, F7-F9 will take you to a GUI terminal.
Tab Key At the prompt use the Tab key to complete commands E.g. You have a command 'evolution' type: evolu (press Tab) and the shell will complete it. If there are more than one matches press Tab again to get a list of all the matches.
locate filename Searches for filename on your disk. This command allows you to search for a file on your disk. Run 'updatedb' (Without the quotes) as root to recognize new files and their location.
history See all commands typed at the console. Use 'history | more' (Without the quotes) to pause after every screenfull of information. Use 'history -c' (Without the quotes) to clear the command history.
dmesg Shows the messages generated when the computer was booting up. Use this command to view the messages generated while booting up. It lets you see alot of sometimes helpful info about your computer
ps -A Shows a list of all running processes. Shows a list of all running processes.
kill pid Kill the process with pid as the Process ID pid is the Process ID, which can be found using the ps command. e.g. if you want to kill a process with a process ID of 1000 use the command: kill 1000
<Ctrl> R Search the command history backwards Press <Ctrl> R and type the first few characters of the command to search for. When the command you are searching for shows up press enter to execute it.
<Ctrl> L Clear the screen Clear you screen using this key combination instead of using 'clear'.
<Crtl><Alt> Backspace Restarts X This command kills X. If your sets up inittab the right way, then X can be set up to restart whenever it dies, so if that's what's going on, then ctrl-alt-backspace will restart X.
finger @kernel.org Gets Linux kernel version list from kernel.org Gets Linux kernel version list from kernel.org
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all Cut off all ICMP ECHO requests Cut off all ICMP ECHO requests without messing with iptables. You have to issue this command everytime your kernel is rebooted, putting this line into /etc/rc.local (might be other file if it's not RH) file will automaticly make it start everytime the machine is rebooted.
cat >> filename Append data to the end of filename When this command is run it will append the data entered at the console to the end of the file: filename. To end the data entry press <Ctrl> D
who | wc -l Tells you how many users are logged in to the system Tells you how many users are logged in to the system
!letter Recalls the last command starting with that letter Recalls the last command starting with that letter. e.g. !w will run the last command starting with a w.
rpm -qR -packagename List all packages an installed package depends on Lists all the packages which an installed package depends on. If you want to check on a package that hasn't been installed, use rpm -qpR -fullpackagename

| Home| About Me| About India| Hotlinks| Linux Related| Mirror(s)| Misc Sec|
| My Blog| Photogallery| Scripts Section| Technology Section| Guestbook| My Resume|

04181 Visits
since 23rd Dec 2004