-
Find out what those commands are for!
Have you ever wanted to know what the commands in these directories do:
/bin
/sbin
/usr/bin
There is a command called whatis and xargs, that can be used quite creatively to print out quick definitions of all the command in a directory.
Code:
ls | xargs whatis | less
Move to the bin directory of your choice and follow the example below:
Code:
root@0[/]# cd /bin
root@0[bin]# ls | xargs whatis | less
afio (1) - manipulate archives and files
arch (1) - print machine architecture
ash (1) - a shell
ash.static: nothing appropriate.
bash (1) - GNU Bourne-Again SHell
bsd-csh (1) - a shell (command interpreter) with C-like syntax
bsh (1) - a shell
cat (1) - concatenate files and print on the standard output
chgrp (1) - change group ownership
etc... etc... etc...
These will print out the whatis for every command in the directory you are in so you can get a quick overview of the commands listed.
Enjoy!
-
Junior Member
registered user
THANK YOU!!
-
No problem!
This was a tip I learned a few years ago (I think) and it just popped back into my brain so I thought I would share it.
-
Senior Member
registered user
I like "dpkg -l |less"
On a Debian system this will give you a list of all the packages you have installed on your machine with descriptions of what the package does.
For example:
ii 3270-common 3.2.17-2 Common files for IBM 3270 emulators {x,c,s,t
ii a2ps 4.13b-20 GNU a2ps - 'Anything to PostScript' converte
ii aalib-bin 1.4p5-17 sample programs using aalib
ii aalib1 1.4p5-17 ascii art library
ii abiword 1.9.0+cvs.2003 WYSIWYG word processor based on GTK2
ii abiword-common 1.9.0+cvs.2003 WYSIWYG word processor based on GTK2
ii ace-of-penguin 1.2-5 Solitaire-games with penguin-look
ii acme 2.0.3-1 Enables the "multimedia buttons" found on la
ii acroread 5.06-0.4 Adobe Acrobat Reader: Portable Document Form
ii adduser 3.50 Add and remove users and groups
The nice thing about this is that it also gives you the version of the package you have installed.
If you want to look up just one package, you can do this "dpkg -l packagename"
Ex. "dpkg -l cpio" yeilds
cpio 2.5-1 GNU cpio -- a program to manage archives of files.
-
polish translation of this article / polskie t?umaczenie
polish translation of this article / polskie t?umaczenie tego artyku?u
http://debiandiary.aso.strefa.pl/vie...asc&highlight=
-
xargs isn't necessary. You could do something like the following:
The backticks around ls are expanded out to the output of the command. Therefore, if you had a directory consisting of two files, foo and bar, `ls` would expand out to "foo bar". The full command, after being fully expanded, in this case, would be:
Code:
whatis foo bar |more
Similar Threads
-
By rickenbacherus in forum General Support
Replies: 21
Last Post: 04-24-2008, 02:48 AM
-
By lbenn in forum Hardware & Booting
Replies: 0
Last Post: 05-22-2005, 12:32 AM
-
By ghostblaze in forum General Support
Replies: 6
Last Post: 10-29-2004, 12:53 PM
-
By knopphead in forum Hardware & Booting
Replies: 2
Last Post: 04-27-2004, 01:08 AM
-
By EmoRock in forum General Support
Replies: 3
Last Post: 08-25-2003, 03:11 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Dell Poweredge R720 8SFF 2.5" x Xeon E5-2680 v2 2.8GHz 20-Cores 128gb 4x Trays
$349.99

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD
$275.00

Dell PowerEdge R730XD Server 2x E5-2695 V4 = 36 Cores H730p 32GB RAM 4x trays
$649.99

Dell Poweredge R720 8SFF 2.5" 2x Xeon E5-2680 v2 2.8GHz 20-Cores 64gb 4x Trays
$259.99

Dell PowerEdge R620 2x Xeon E5-2630 v2 3.1GHz 2.5" 4-BAY 32GB RAM No OS 2x 495w
$174.95

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb
$374.99

Dell PowerEdge R620 Dual Intel Xeon E5-2640 v2 @2.00GHz 192GB RAM No HDD H710P
$250.00

Dell Poweredge R530 Server Dual Xeon E5-2660v3 CPU's 160GB DDR4 Ram NO HDD NO OS
$499.99

Dell PowerEdge R530 2x E5-2630v4 H330 iDRAC8 Port Card Riser No PSU/RAM/HDD
$99.99

DELL R640 10SFF Server 2x Gold 6152 2.1GHz =44 Cores 64GB H730p 4xRJ45
$959.00