- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- The 3 most ingenious UNIX line commands are ...?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-1999 02:19 AM
04-12-1999 02:19 AM
The 3 most ingenious UNIX line commands are ...?
own ingenious options. Let's hear about your favorites.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-1999 04:45 AM
05-05-1999 04:45 AM
Re: The 3 most ingenious UNIX line commands are ...?
echo Mhbqnrnes Stbjr | tr [a-y] [b-z]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-1999 03:49 AM
06-10-1999 03:49 AM
Re: The 3 most ingenious UNIX line commands are ...?
[ `basename $SHELL` = "ksh" ] && PS1=`uname -n`:`id -un`:'$PWD'"> " ; export
PS1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-1999 07:44 AM
06-17-1999 07:44 AM
Re: The 3 most ingenious UNIX line commands are ...?
1. fsck
2. find
3. grep
Sanjay d
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-1999 10:45 PM
06-17-1999 10:45 PM
Re: The 3 most ingenious UNIX line commands are ...?
make sense
lost
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287
578439snlbxq'|dc
:-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-1999 11:18 PM
06-18-1999 11:18 PM
Re: The 3 most ingenious UNIX line commands are ...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-1999 10:48 AM
06-26-1999 10:48 AM
Re: The 3 most ingenious UNIX line commands are ...?
2)dmesg
3)swapinfo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-1999 08:07 PM
07-06-1999 08:07 PM
Re: The 3 most ingenious UNIX line commands are ...?
2. find
3. man :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-1999 02:43 AM
08-23-1999 02:43 AM
Re: The 3 most ingenious UNIX line commands are ...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-1999 06:32 PM
08-26-1999 06:32 PM
Re: The 3 most ingenious UNIX line commands are ...?
e.g. you are not sure which startup files contain the word
network
find /dirname -type f -exec grep -il network {} \;
simple but very useful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-1999 06:27 PM
09-07-1999 06:27 PM
Re: The 3 most ingenious UNIX line commands are ...?
...oh, sorry!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-28-1999 05:07 AM
09-28-1999 05:07 AM
Re: The 3 most ingenious UNIX line commands are ...?
2) reboot -h
3) halt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-07-1999 07:20 AM
10-07-1999 07:20 AM
Re: The 3 most ingenious UNIX line commands are ...?
do
done
Which is something that simply cannot be duplicated in a GUI interface.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-1999 02:14 AM
10-13-1999 02:14 AM
Re: The 3 most ingenious UNIX line commands are ...?
So, what are the 3 most cleverly inventive UNIX line commands? As originally
designed, they may possibly be:
1. the pipe command "|"- it allows the construction of elegant and ingenious
command line strings from a series of simple Unix commands.
2. the IO redirection command "<>"- it allows input/output to be easily
redirected to other files or devices.
3. the concept that EVERYTHING is a file. (I could be wrong about this but I
can't think of a third command).
Any better suggestions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-1999 06:23 PM
10-18-1999 06:23 PM
Re: The 3 most ingenious UNIX line commands are ...?
eval args
cmd &
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-1999 09:00 AM
11-15-1999 09:00 AM
Re: The 3 most ingenious UNIX line commands are ...?
man
whoami
in that order, if the first result is non zero
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2000 11:51 PM
03-07-2000 11:51 PM
Re: The 3 most ingenious UNIX line commands are ...?
2. dows/
3. NT
.... OEPS... :)
Sorry, mistake...
1. |
2. awk
3. sed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 05:40 PM
01-03-2002 05:40 PM
Re: The 3 most ingenious UNIX line commands are ...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2002 10:28 PM
01-03-2002 10:28 PM
Re: The 3 most ingenious UNIX line commands are ...?
kill
mount
find
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2002 12:19 AM
01-04-2002 12:19 AM
Re: The 3 most ingenious UNIX line commands are ...?
1) find
2) sed
3) awk
Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2002 06:29 AM
01-04-2002 06:29 AM
Re: The 3 most ingenious UNIX line commands are ...?
My favorite is vi
and my 2 favorite vi .exrc features use the little known commands: adjust and spell
map #3 !}exec adjust -m72^M
map S G:w!^M:r!spell %^M
The first is a shorthand for trapping function keys, in this case f3. So when I put the cursor somewhere on the first line of a paragraph and press f3, the paragraph is reformatted to fit into 72 columns. (I have other keys for 60 columns and 80 columns). The adjust command is a powerful tool for formatting text files. You can simulate the HP function keys by typing the 2-letter sequence: f1 = ESC p f2 = ESC q and f3 = ESC r and so on.
The second comes right out of the "Ultimate Guide to VI" book (from HP) and will spellcheck your file, appending all the unknown words at the bottom of your file. Since there is no S command in vi, I defined it as the spell checker.
Another favorite is option is ai (as in :set ai) which eliminates having to space over when writing code so that sections are indented and aligned automatically.
The incantation: UNIX95= ps
is a favorite. There are a LOT of options most people don't know about in the ps man page, and some of the best require the UNIX95= setting. Ever seen this:
# ps -ef | grep -v grep | grep myprogram
Most of us learned this in Unix 101. It searches every line in ps -ef for the string myprogram and the grep -v grep gets rid of the grep that you are running. What if you need to search for grep?
So here's a great one to replace it:
# UNIX95= ps -f -C myprogram
See? No grep required! And what if you are looking for a program called root--grep doesn't care where the string is located. Here is another example:
# UNIX95= ps -f -C sh
Need to see all thre related parent/child relationships:
# UNIX95= ps -efH | more
And the favorite for solving memory problems:
# UNIX95= ps -e -o vsz,ruser,pid,args | sort -rn | more
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2002 06:36 AM
01-04-2002 06:36 AM
Re: The 3 most ingenious UNIX line commands are ...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2002 07:25 AM
01-04-2002 07:25 AM
Re: The 3 most ingenious UNIX line commands are ...?
This ought to be, at the least, an unsupported command, perhaps an easter-egg type of surprise. A patch to add it back would be nice (hint, hint). :-)
--
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2002 07:33 AM
01-04-2002 07:33 AM
Re: The 3 most ingenious UNIX line commands are ...?
The best? Well it would have to be:
cat /dev/null > ./windows/any/os
My list, although not limited to 3, is:
dd
od or xd
sed
|
tee
regular and extended expressions
grep
xargs
redirection <, >, >>
rcp, rsh, ...
ls
ps
kill
tr and y
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2002 08:21 AM
01-04-2002 08:21 AM
Re: The 3 most ingenious UNIX line commands are ...?
finger
fsck