Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-06-2007, 07:05 AM   #1
Registered: Dec 2004
Location: Denver Colorado
Distribution: Kubuntu/Debian
Posts: 120

Rep: Reputation: 15
3 surveys about Bash> How many commands do you know...

I am conducting three mini surveys, as I am just entering bash programing.

1.How many commands do you know?

2. What commands do you use the most?

3. In what capacity do you use the commands? (IE Networking, system admin, web server etc.)

My goal is to see which commands I need to know for various job duties, I'm reading Linux Command Pocket Guide and Linux Command shell scripting, but you guys are already in the trenches

Old 04-06-2007, 08:37 AM   #2
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
1. Wow, that's hard to say. I probably use 75 to 100 frequently enough that I would be able to think of them if I were to try to make a comprehensive list of all of them that I know.

2. cd, ls, top, w, who, grep, last, awk, sed, cut, uniq, sort, cat, less, more, lsof, ps, kill, rm, mkdir, mv, cp, top, exec, xargs, netstat, nc, tar, gzip, gunzip, chown, chmod. exit is one that I use every time I login to a server. I've included some that are not strictly speaking "commands" in the bash sense of the term, like netstat. I've excluded those that I use only within shell scripts, like test and break.

3. Sys admin for about 1400 Linux servers and 600 Windows servers. Almost all of them are web servers, database servers (largely MySQL), and mail servers.
Old 04-06-2007, 08:56 AM   #3
Senior Member
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,631

Rep: Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711Reputation: 711

How do install Linux server #1401?

If the question is not clear, how in the world do you install and manage 1400 servers? What special techniques do you use? Do you have a master from which you clone every new machine? How do you remember 1400 root passwords? How do you upgrade to the next MySQL release? If a machine breaks, how to you restore it? How do you keep track of all configurations?


Sorry I didn't want to hijack your thread.

I manage only 15 servers & workstations (but none of them are equal )
The commands I use most are ls, grep, sed, awk, cp, mv, chmod, chown, less, joe, iptables, jnettop, top, tcpdump, ssh, ping, traceroute, ps, find, ncftp, mount, dc, man(!) and su.

Many commands are not strictly bash commands, but I use them command line.

Old 04-06-2007, 09:19 AM   #4
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30

So as not to hijack the thread...if there are other questions not related to the topic, feel free to email me. Briefly:

Thankfully, I'm not alone--sorry if I seemed to imply that I was. I am one of three senior sys admins on a team of about 17 techs. We keep the root passwords in a database, which also has the basic config details for each server. We install about 15-20 new servers per week, and have four techs that take care of this angle. These four also deal with hardware failures under sys admin guidance.

We do an auto-install from a PXE boot that automates the bulk of the install, and run a post-install script on most of them that handles most of the basic configuration.

As far as updating the machines: The end users need to tell us if they need to have something additional installed or updated to get new features or functionality. We keep a close eye on security errata and update accordingly by querying the database to determine which machines are in need of a given update or updates. Once we have a list, we notify the end users of the impending updates, divide up the list, and get the updates done as soon as possible. To this end, yum/up2date handles most things nicely, though we are currently developing a way to push updates down to each needed server from a central box.
Old 04-06-2007, 09:41 AM   #5
Senior Member
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
maybe this will help
Old 04-06-2007, 10:08 AM   #6
Registered: Sep 2006
Location: Dayton, Ohio
Distribution: Slackware 12, Fedora Core, PCLinuxOS
Posts: 194

Rep: Reputation: 30
1.How many commands do you know?
I agree that this is hard to answer.

2. What commands do you use the most?
ls, cd, rm, mv, cp, exit, su, mkdir, rmdir, tar, gunzip, vi, ps, kill, ssh, telnet, lynx, jobs, ifconfig, route, installpkg, df, w, pwd, man, apropos, smbclient, mount, umount, ln, chown, chmod, cat, locate, find, grep, more.
Those are some that I can think of off of the top of my head, and like zaichik, some of these are applications, not just bash commands, but they are commands I regularly use from th CLI.

3. In what capacity do you use the commands? (IE Networking, system admin, web server etc.)

I use them as a network engineer and for general system administration.

Last edited by alienux; 04-06-2007 at 10:09 AM.
Old 04-06-2007, 11:23 AM   #7
Registered: Dec 2003
Location: Toronto, Canada
Distribution: Mint, Mandriva
Posts: 221

Rep: Reputation: 31
Originally Posted by mohtech
I am conducting three mini surveys, as I am just entering bash programing.

1.How many commands do you know?

Are you talking about bash commands or system commands?

Bash has more than 50 builtin commands of which I regularly use about 40.

The system commands have nothing to do with bash; they can be used from any shell, or from almost any programming language.

There are thousands of system commands (of which I probably "know" a few hundred), and hundreds of commands that I have written myself (mostly shell scripts, many as shell functions, and a few written in C).

2. What commands do you use the most?

There are several that are running all the time as I use them constantly: bash, pdksh, slrn, emacs, gentoo (file manager), rxvt, ssh, pine, firefox, xmms, 9menu.

Others that I use frequently include: ls, ps, [, grep, sed, awk, cd, printf, echo, less, cd, man, grep, wget, ftp, find, pushd, popd, locate, xv, gv, mv cp, ffplay, type, time, date, urpmi, lp, sort, uniq, tar, touch, file, df, chmod, scp, cut, cat, xboard, wc, mplayer, kaffeine, xpdf, whois, w, who, sudo, su, head, tail, ln, stat, convert, gzip, xpdf.

3. In what capacity do you use the commands? (IE Networking, system admin, web server etc.)

I use them for everything.



bash, scripting

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Few commands in bash c4nk Linux - General 10 12-18-2006 02:19 AM
LXer: Linux Surveys LXer Syndicated Linux News 0 09-04-2006 11:33 PM
bash commands Obie Linux - Security 4 08-15-2004 02:42 PM
Microsoftie surveys why people use Linux. macewan General 17 12-28-2003 04:26 PM
Bash commands wprescott Linux - Distributions 6 04-27-2002 02:56 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration