Author: Kurt Hartman Jr
First off, let me say that I am not one of those terminal loving Linux fans. I think it is cool and all, but I tend to save the command line for things that either require doing a massive batch job, or when I need to do something really specific.
Other than that, I stick to the Gnome GUI, and work within the parameters that various menus offer me. That works for 99% of what I need done.
However, I have found a very few commands that I need on a reasonably regular basis. Since I tend to be somewhat command line averse, I figure I’ll throw them out there, for those of you who are new Ubuntu (or other type of Linux users).
Without further adieu, here they are, in order of usefulness to me:
1. ps -A : This will show you a list of all running processes, along with displaying a process id number. This command is helpful, because it is necessary when you run command #2.
2. kill -9 [insert process id number] : This tells the program associated with the process id number to die instantly. For instance, if Amarok was running with a process id number of 8077, and it was hung, or not responding, you would open up a terminal and type: kill -9 8077 . That means “Don’t ask me any questions, don’t ask if I want to save my work. Close immediately. Do not pass Go, do not collect $200.”
3. locate : locate is a very powerful search. Basically, open up a terminal, and issue the command: locate , along with any part of a filename you want to find. locate will give you a reading where any part of that text string appears, along with giving you the exact location of the file(s) in question.
4. lspci and lsusb : Okay, so there are really 8 commands, but these two are two sides of the same coing,so I am throwing them both in together, as a kind of bonus.
lspci , when issued, gives back a list of everything connected to the PCI bus, along with your graphics card, and some other fun stuff.
If you are having driver issues, many times, the first thing that a help forum will ask you to do, is give them what lspci prints out. lsusb does the same thing, but gives you a rundown of your USB devices. While it may seem rather redundant, especially since you can already see what is connected to your pc, I assure you, it is not. Many times, the manufacturer of the PC, will use one of the built in USB hubs to attach the webcam, a card reader, or some other piece of built-in hardware.
5. pstree : Ever accidentally kill off a process, not knowing that it was being used by a program you wanted to keep up and running? pstree can solve many of these problems. Issuing the pstree command, shows all your processes in a “treed” hierarchy, meaning you can see what process goes with what program. A must-have.
6. ifconfig : While ifconfig will let you actually configure a device, most of the time, you will be typing it to get basic feedback on your networking devices. It is especially helpful when troubleshooting your wireless ethernet. Issue the command, and it gives you back your current ip address, MAC address, and a ton of other useful information. Good stuff.
7. chown : chown , or “change ownership”, allows you to do exactly that, for any given file, at any given time. For instance, if you have a public computer, and you don’t want just anyone to be able to access your file (diary.txt), then you would issue the command: chown root diary.txt (assuming permissions to view or edit are only available to the owner of the file) . This would give control of the file over to root, and require a password to view.
The only exception would be if you are running your PC, under the root user, in which case, you have far greater problems than someone reading your diary.
There are many other useful Linux commands that you will learn. Hopefully, these make your day a little easier, and your time using Linux more productive.
Article Source: http://www.articlesbase.com/computers-articles/7-useful-commands-for-ubuntu-linux-newbies-4965184.html
About the Author
Kurt Hartman is a 3 1/2 year veteran of Linux usage, and Head of Web Development for a company that sells heavy equipment and haul truck tires, at http://www.otrtiresupply.com
Popular Posts:
- None Found
For point 2, if you want to do this for GUI programs then you can use xkill that too works very well. This is assuming and on understanding that you like GUI more than terminal.
In fact, I think you should have mentioned “dmesg” as the most useful command, but I guess thats just me 🙂
“lscpi , when issued, gives back a list of everything connected to the PCI bus, along with your graphics card, and some other fun stuff”…
It must be “lspci”, not “lscpi”…
Thanks Juan.
There are useful commands that can be run from Alt+F2 in http://ubuntuforums.org/showthread.php?t=1656060
The ones not present above:
eog : Eye of GNOME (image viewer)
file-roller : File Roller (archive manager)
gcalctool : gcalctool (calculator)
gconf-editor : Configuration Editor (user preferences and system configuration data editor for the GNOME Desktop and many applications)
gnome-control-center : GNOME Control Center (control panel)
gnome-search-tool : Search for Files (file searcher)
gnome-session-save –logout-dialog : “Log Out of the Session” dialog (to finish or close the session; or to switch or change the user)
gnome-session-save –shutdown-dialog : “Shut Down the Computer” dialog (to turn the computer off, reboot it, suspend it or hibernate it)
gnome-terminal : GNOME Terminal (terminal emulator)
gucharmap or gnome-character-map : GNOME Character Map
onboard : onscreen keyboard
onboard-settings : configure Onboard
setxkbmap xx : change the keyboard layout (xx can be it or gb or es or fr …)
totem : Totem (movie player; also plays audios)
xcalc : xcalc (calculator)
xset dpms force off : turns the screen off (useful for laptops)
xterm : xterm (terminal emulator)
gnome-calculator también vale para abrir gcalctool
Más comandos:
ooffice u openoffice.org : OpenOffice.org
ooffice -draw u openoffice.org -draw : OpenOffice.org Draw
ooffice -calc u openoffice.org -calc : OpenOffice.org Calc
ooffice -impress u openoffice.org -impress : OpenOffice.org Impress
ooffice -writer u openoffice.org -writer : OpenOffice.org Writer
ooffice -math u openoffice.org -math : OpenOffice.org Math
The GNOME Character Map can also be opened just with this short command:
charmap
Another one:
simple-scan : Simple Scan
Another one:
alacarte : Main Menu (select which applications we want to appear in the main menu)
This one doesn’t work in Ubuntu 12.04 Precise Pangolin. Anyone knows any alternative command for this in this 12 version?
Another 2, related to the keyboard:
gnome-keyboard-properties : Keyboard Preferences
gnome-keybinding-properties : Keyboard Shortcuts
These 2 ones don’t work in Ubuntu 12.04 Precise Pangolin. In this version, from the control panel you have a Keyboard option where you can both change keyboard settings (layouts, …) and keybindings (shortcuts). Anyone knows which terminal command can open this Keyboard dialog directly in the 12 version?
Another command:
gnome-system-monitor : System Monitor (System -info about the system: installed version of Ubuntu, hardware, …-, Processes -we can view and end them from here-, Resources -monitor of CPU, memory, …- and File Systems)
Thanks
Another one:
usb-creator-gtk : Ubuntu Live USB creator
Many more:
http://tomasmckinless.wordpress.com/2012/01/09/a-whole-lotta-linux-ubuntu-commands/
&
http://www.duckd.cz/en/linux-commands-and-programs
Thanks
Here we have useful Linux Mint commands:
mintbackup: mintBackup (backup tool)
mintdesktop: mintDesktop (desktop settings)
mintinstall: mintInstall (software manager)
mintmenu: main menu
mintupdate: mintUpdate (update manager)
mintwelcome: welcome screen