View Full Version : What terminal commands do you use most often?
diablo75
June 11th, 2008, 03:47 PM
I'm putting together a blog about the Terminal, and am looking for some commands that are used most often.
The easy beginner commands that I can think of include ls, cd, mv, cp.... there's a lot out there to pick from. What commands are best for beginners to learn?
Also, features like tab-completion are also well worth mentioning. Are there any other tricks that I should know about?
robertchahine
June 11th, 2008, 03:49 PM
aptitude
apt-get (remove install purge...)
locate
ln
gedit
nano
du
df
find
fdiskl, lspci,for sure sudo and gksudo (difference between them)
robertchahine
June 11th, 2008, 03:52 PM
by the way .
nice blog, i really like it.(especially the graphics and pictures)
diablo75
June 11th, 2008, 04:03 PM
by the way .
nice blog, i really like it.(especially the graphics and pictures)
Hey thanks! :)
KingTermite
June 11th, 2008, 04:11 PM
It probably was "nedit" until 2 days ago. Nedit was my favorite editor and I used it to edit any config type files. 2 days ago somebody here turned me on to Geany which is an even better editor and has a built in terminal window in a lower window pane to test out changes.
So now it will probably be "geany".
Sealbhach
June 11th, 2008, 04:18 PM
Yeah, nice blog.
Recently I've used:
sudo halt
killall
.
Joeb454
June 11th, 2008, 04:24 PM
probably
(conky &)
cd
sudo shutdown -P now
diablo75
June 11th, 2008, 04:32 PM
I know I've used init 6 to restart my computer from the command line before. What are some other commands like this?... Does anyone know the origin of this init command?
aeiah
June 11th, 2008, 04:32 PM
eject -t
cd
ls
sudo shutdown -h ti:me
sed
nano
grep
cat
scp -P port user@domain:/path/to/file /destination/file
wget
apt-get
the best part about the terminal are the pipes though
elvinatom
June 11th, 2008, 04:34 PM
mkfs
Luke has no name
June 11th, 2008, 04:51 PM
sudo rm -rf /
Not on my computer, of course.
apt-get and nano, smarttools.
diablo75
June 11th, 2008, 04:52 PM
sudo rm -rf /
Thanks for the reminder to warn others about risky/dangerous commands. ;)
cardinals_fan
June 11th, 2008, 05:35 PM
vim
cd
ls
rm
mv
cp
mthei
June 11th, 2008, 05:48 PM
dpkg -i
diablo75
June 11th, 2008, 07:18 PM
for sure sudo and gksudo (difference between them)
...What is the difference between them?
bufsabre666
June 11th, 2008, 08:03 PM
...What is the difference between them?
gksudo opens an application as root from outside the terminal while still allowing you to use the terminal for other things, with sudo it wont let you use the terminal again till the task is closed, or if you close the terminal youll quit the program
SomeGuyDude
June 11th, 2008, 08:05 PM
I use apt-get mainly. Aside from "sudo nautilus" and "sudo update-manager -c -d".
diablo75
June 11th, 2008, 08:16 PM
gksudo opens an application as root from outside the terminal while still allowing you to use the terminal for other things, with sudo it wont let you use the terminal again till the task is closed, or if you close the terminal youll quit the program
There's another way to do this, right? Like if you append a & after a command?.... I think, is that right?
id1337x
June 11th, 2008, 08:17 PM
Most common terminal commands?
sudo
gksudo
apt-get source
cd
ls
gedit
gcc
perl
./configure
make
make test
make install
make clean
make distclean
I prefer to compile things from source.
melrom
June 11th, 2008, 08:22 PM
well, directory stuff is nice too.
mkdir
rmdir
That said, I like the basics you listed, i.e. cd, mv, ls.
ghindo
June 11th, 2008, 08:43 PM
There's a thread somewhere in the Community Cafe that asked this question and then gave a command which told you the top ten terminal commands you had ever used. I'll go looking for it after I post this.
bobdob20
June 11th, 2008, 08:48 PM
well, directory stuff is nice too.
That said, I like the basics you listed, i.e. cd, mv, ls.
Along with the basics, exit is useful if you are using a borderless window manager or just dont feel like clicking on that X button. clear is good for when cli programs don't revert the terminal back and just leave the bottom line showing.
ghindo
June 11th, 2008, 08:56 PM
There's a thread somewhere in the Community Cafe that asked this question and then gave a command which told you the top ten terminal commands you had ever used. I'll go looking for it after I post this.Here's the thread I was referring to:
http://ubuntuforums.org/showthread.php?t=472090
Therion
June 11th, 2008, 08:57 PM
sudo make me a sandwich rm onion
bufsabre666
June 11th, 2008, 09:00 PM
sudo make me a sandwich rm onion
no you need to split that up
sudo make me a sandwich
cd sandwich
rm onion
RebounD11
June 11th, 2008, 09:21 PM
no you need to split that up
sudo make me a sandwich
cd sandwich
rm onion
it could be like this:
sudo make me a sandwich && cd sandwich && rm onion
now on topic:
killall npviewer.bin
and since I posted this does someone know of a good 64-bit flash player plugin that works with youtube, speedtest.net and livescore.com?
diablo75
June 11th, 2008, 09:22 PM
Here's the thread I was referring to:
http://ubuntuforums.org/showthread.php?t=472090
Hey that's pretty cool! I'll have to do some reading to split that code up so I know what each little bit does (just for fun later). All the top 10's in that thread are good info too. I like your Aphex Twin avatar by the way.
_DD_
June 11th, 2008, 09:26 PM
Now that everything is set up how I want it I don't really use the terminal often. If I do its usually to install software or...
$ sudo smartctl -a /dev/sda | grep Load_Cycle_Count
...once in a while to make sure some config file hasn't changed by an update and my drive isn't suddenly being eaten again.
zmjjmz
June 11th, 2008, 09:31 PM
gedit
espeak
sudo
ls
cd
rm
nano
ping
mplayer
make
This was generated from the aforementioned commands in the other thread.
Therion
June 11th, 2008, 10:22 PM
no you need to split that up
sudo make me a sandwich
cd sandwich
rm onion
DAMN... Seems obvious once someone points it out.
Anyone have the modifier for grey poupon?
And props to the original at xkcd dot com (http://xkcd.com/149/):
http://www.trackback.it/img/sandwich.png
Sealbhach
June 11th, 2008, 11:29 PM
And props to the original at xkcd dot com (http://xkcd.com/149/):
http://www.trackback.it/img/sandwich.png
That made me laugh. I must be getting it.:)
.
NJC
June 12th, 2008, 01:06 AM
gedit
top
free
locate
elashish
June 12th, 2008, 01:33 AM
apt-cache (search, policy, show)
i wish i knew a better way to know if I have a package installed. any help?
grossaffe
June 12th, 2008, 04:03 AM
sudo apt-get install more RAM
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.