e9ed
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
A while ago FreeBSD forum user Beastie brought to my attention a great little program: math/units which is part of the base system.
So I was wondering if anybody knows of any other useful / interesting base-system gems which may have been overlooked? If you know one, post it here!
|
|
#2
|
||||
|
||||
|
|
| The Following User Says Thank You to jrm For This Useful Post: | ||
nickednamed (December 4th, 2012) | ||
|
#3
|
||||
|
||||
|
Netcat! Often overlooked
![]() printf "GET / HTTP/1.0\r\n\r\n" | nc host.example.com 80See nc(1) for more examples. And I also like dc(1) instead of bc(1). Mainly because it uses RPN (I'm a big fan) and it can do hexadecimal conversions. Code:
dice@molly:~$ dc 16i C0 p 192
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
nickednamed (December 10th, 2012) | ||
|
#4
|
||||
|
||||
|
fmt(1) has a nice little wordwrap function. And there's jot(1), which I can't recall using but certainly can do lots of weird things.
Unix Power Tools has a lot of classic command examples. |
| The Following User Says Thank You to wblock@ For This Useful Post: | ||
nickednamed (December 10th, 2012) | ||
|
#5
|
|||
|
|||
|
Thanks guys.
Can't believe how much easier shell scripting will be after checking some of these out; it's like someone already thought of most of the things I want to do. It's a pity that the shell scripting books I have read [and largely forgotten!] had only, grep, cut, cat, echo, sed, and a few others I'm sure. I have actually been going through usr/bin and reading randomly selected programs' man pages, but some of them are a bit esoteric, so it's always nice to see how real people actually use these programs for real life problems, especially in combination. |
|
#6
|
||||
|
||||
|
In my opinion there's only so much one can learn from a conventional UNIX book. Once you've read one and understand the basics, you're probably better served with Tips&Tricks kind of books (UNIX Power Tools, BSD Hacks, that sort of thing). Also, choosing random commands from /usr/(s)bin and reading up on what they do is a good way of learning, as you've already discovered. And don't forget the FreeBSD fortune(6) cookies.
Fonz
__________________
It's self-perpetuating a parahumanoidarianised. -- Queen: "Back to Humans" (best song lyric ever) |
| The Following User Says Thank You to fonz For This Useful Post: | ||
nickednamed (December 14th, 2012) | ||
![]() |
| Tags |
| base, port, program, units |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] Protecting the base system - a la PC-BSD | nickednamed | General | 8 | October 14th, 2012 18:11 |
| Base System - World - Userland | Niatross | General | 10 | September 24th, 2012 16:27 |
| Config version not up to date on base system. | sossego | Installing & Upgrading | 1 | February 26th, 2012 05:26 |
| Crosscompile the base system | minimike | Installing & Upgrading | 4 | August 12th, 2011 09:21 |
| Base system compile error | sk8harddiefast | Installing & Upgrading | 1 | September 27th, 2010 03:36 |