Name 10 commands every Linux and Unix admin should know

Arkitech

Diamond Member
Apr 13, 2000
8,356
3
76
I'm working on further developing my Unix skills and I'm just curious what some of the experienced admins out there would consider to be 10 essential commands every admin should know.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
It depends on the flavor for some of these things, IMO.

Other than that you can always learn: sed, awk, and a shell.

ifconfig is generally nice to know too, but most of it is pretty standard.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
screen
grep
used to, I would have said vi, but now I say nano
ln

There are some commands that are almost too basic worth mentioning, and some you will HAVE to know them to get around on the cli, but here are some very very basic commands:
ls
cd
adduser
passwd
mv
cp
touch
rm
shutdown
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
I don't know sed or awk...I use perl for most of that stuff anyway

ifconfig, less, | (pipe), grep, cat, echo, export, cd, mv, cp, tar

that's 11
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Brazen
screen
grep
used to, I would have said vi, but now I say nano
ln

There are some commands that are almost too basic worth mentioning, and some you will HAVE to know them to get around on the cli, but here are some very very basic commands:
ls
cd
adduser
passwd
mv
cp
touch
rm
shutdown

nano isn't available on all unix and linux systems by default. Being familiar with vi is a necessity, and if you need something more, learn a real editor. Like emacs.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: nweaver
I don't know sed or awk...I use perl for most of that stuff anyway

ifconfig, less, | (pipe), grep, cat, echo, export, cd, mv, cp, tar

that's 11

I don't know enough perl to replace the little bit of sed/awk I've done. Yet.

I forgot the '|'! How could I have forgotten that? It's quite possibly the most important unix command of them all.
 

Chaotic42

Lifer
Jun 15, 2001
33,932
1,113
126
ls: You have to be able to see what your files are.
cp: You have to be able to copy your files.
grep: Searching is a must.
cat: See grep.
mv: Moving files.
rm: Removing files.
vi/pico/etc: You need some kind of editor.
ps: You need to see what's going on.
su: You have to switch users.
tar: Everyone has to archive things.


Edit: You really need more than 10.
 

Arkitech

Diamond Member
Apr 13, 2000
8,356
3
76
Wow, I have a lot to learn. I know some of the commands you guys listed, but I definitely need to learn grep better. I've never used sed and awk before so I need to add that to the list.

I just built a Linux box this morning running Ubuntu, so I plan to get a lot of practice. I want to move into a contracting position as an admin so I'm going to be spending a lot of time studying and practicing like crazy.
 

Chaotic42

Lifer
Jun 15, 2001
33,932
1,113
126
Originally posted by: Arkitech
Wow, I have a lot to learn. I know some of the commands you guys listed, but I definitely need to learn grep better. I've never used sed and awk before so I need to add that to the list.

I just built a Linux box this morning running Ubuntu, so I plan to get a lot of practice. I want to move into a contracting position as an admin so I'm going to be spending a lot of time studying and practicing like crazy.

Don't get overwhelmed with sed and awk. They look absolutely horrible to someone who is unfamiliar with them. They just look averagely horrible to people who are familiar with them.

I use "tail" all of the time at work too (I work in a Unix datacenter at a bank), but I didn't put it in my list since I only got 10 choices.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
"man man" is obviously the single most important command. In theory that's all you ever need Can't believe no one's mentioned it yet.

And some people will argue for more, but I like less, more or less.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Edit: dammit, hit the reply button instead of "Operating Systems"
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Originally posted by: kamper
"man man" is obviously the single most important command. In theory that's all you ever need Can't believe no one's mentioned it yet.

And some people will argue for more, but I like less, more or less.

Oh yeah, I like more and less. I usually don't think about using them though and just use vi or nano.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Originally posted by: n0cmonkey
Originally posted by: Brazen
screen
grep
used to, I would have said vi, but now I say nano
ln

There are some commands that are almost too basic worth mentioning, and some you will HAVE to know them to get around on the cli, but here are some very very basic commands:
ls
cd
adduser
passwd
mv
cp
touch
rm
shutdown

nano isn't available on all unix and linux systems by default. Being familiar with vi is a necessity, and if you need something more, learn a real editor. Like emacs.

emacs doesn't appear to be installed on Debian by default. I don't know why you don't like nano, though. It's worked perfect for me, with no learning curve unlike vi.
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
Originally posted by: n0cmonkey

nano isn't available on all unix and linux systems by default. Being familiar with vi is a necessity, and if you need something more, learn a real OS. Like emacs.

fixed the bloatware reference

 

M00T

Golden Member
Mar 12, 2000
1,214
1
0
Originally posted by: kamper
"man man" is obviously the single most important command. In theory that's all you ever need Can't believe no one's mentioned it yet.

And some people will argue for more, but I like less, more or less.

:light:
 

nweaver

Diamond Member
Jan 21, 2001
6,813
1
0
Originally posted by: Brazen
Originally posted by: n0cmonkey
Originally posted by: Brazen
screen
grep
used to, I would have said vi, but now I say nano
ln

There are some commands that are almost too basic worth mentioning, and some you will HAVE to know them to get around on the cli, but here are some very very basic commands:
ls
cd
adduser
passwd
mv
cp
touch
rm
shutdown

nano isn't available on all unix and linux systems by default. Being familiar with vi is a necessity, and if you need something more, learn a real editor. Like emacs.

emacs doesn't appear to be installed on Debian by default. I don't know why you don't like nano, though. It's worked perfect for me, with no learning curve unlike vi.


nano is craptastic imho

Once you learn insert, save, quit, save and quit, then VI is as simple as notepad, yet you can do so so so much. I don't really like gvim even, I prefer plain old vim/vi
 

Chaotic42

Lifer
Jun 15, 2001
33,932
1,113
126
Originally posted by: ariafrost
Here's one I never use:

kill

I use it all of the time. Sometimes the developers want to make sure their programs never go down...
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: Brazen
emacs doesn't appear to be installed on Debian by default. I don't know why you don't like nano, though. It's worked perfect for me, with no learning curve unlike vi.

emacs shouldn't' be installed by default.

Problems with nano:
It isn't installed by default on every unix.
The interface is different than editors installed on every unix.
It is basically a free pico, and I don't like pico.
vi is easy and powerful.
emacs is easy and powerful.

 

Chaotic42

Lifer
Jun 15, 2001
33,932
1,113
126
Originally posted by: n0cmonkey
Originally posted by: Brazen
emacs doesn't appear to be installed on Debian by default. I don't know why you don't like nano, though. It's worked perfect for me, with no learning curve unlike vi.

emacs shouldn't' be installed by default.

Problems with nano:
It isn't installed by default on every unix.
The interface is different than editors installed on every unix.
It is basically a free pico, and I don't like pico.
vi is easy and powerful.
emacs is easy and powerful.


Can't we all just use "jed" and get it overwith?
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Originally posted by: Chaotic42
Originally posted by: n0cmonkey
Originally posted by: Brazen
emacs doesn't appear to be installed on Debian by default. I don't know why you don't like nano, though. It's worked perfect for me, with no learning curve unlike vi.

emacs shouldn't' be installed by default.

Problems with nano:
It isn't installed by default on every unix.
The interface is different than editors installed on every unix.
It is basically a free pico, and I don't like pico.
vi is easy and powerful.
emacs is easy and powerful.


Can't we all just use "jed" and get it overwith?

jed is not in Debian by default, either
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |