THANK YOU!!
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.
Move to the bin directory of your choice and follow the example below:Code:ls | xargs whatis | less
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.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...
Enjoy!
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.
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 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 `ls` |more
Code:whatis foo bar |more
Cisco Nexus N9K-C9372TX 48P 10G Gigabit Ethernet 6x QSFP+ 40G Switch 2x650W PSU
$189.99
Cisco Catalyst 1000 Series 24 port GE, 4x1G SFP Switch C1000-24T-4G-L
$269.00
Cisco CBS350-24P-4G-NA 24 Ports Rack Mountable Ethernet Switch
$399.00
New | CISCO NEXUS N2K-C2348UPQ-10GE V02 48-PORTS 10Gb SFP DUAL N2200-PAC-400W
$129.99
🔥🔥🔥Genuine Cisco SFP-10G-SR V03 10GBASE-SR SFP+ Transceiver 10-2415-03 🔥🔥🔥
$8.00
Cisco 2960S PoE+ WS-C2960S-48LPS-L Gigabit Ethernet Network Switch w/ Ears
$50.39
Cisco Catalyst 3850 48-Port GbE PoE+ Managed Network Switch WS-C3850-48F-S
$54.99
Cisco ASA 5506-X V07 8-Port Network Security Firewall Appliance + AC Adapter
$67.77
CISCO Catalyst 3560-C Series PoE Switch (WS-C3560C-8PC-S) V01
$49.99
Cisco Nexus N9K-C92160YC-X 48P 25GbE SFP28 6P QSFP+/QSFP28 PE Switch
$475.00