Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
3 answers
240 views
How to extract table of contents from fb2 book?
I have a book in fb2 format. I want to print the table of contents, containing names and numbers of "parts", "chapters", "episodes" and so on. Is there a way I can do this from terminal? There is a [similar question, but for epub format][1]. I know fb2 is an xml format. But is there a tool to extrac...
I have a book in fb2 format. I want to print the table of contents, containing names and numbers of "parts", "chapters", "episodes" and so on. Is there a way I can do this from terminal? There is a similar question, but for epub format . I know fb2 is an xml format. But is there a tool to extract only TOC? They are inside tags `, and `. If there is not, I guess it is possible to make xsl file based on official FB2_to_txt.xsl file. Also maybe ebook-convert could do this? The book that I am working on has the following structure:
fiction
      
        John
        Doe
      
      Fiction Book
      
        

Hello

john, doe, fiction 18.07.2011 en Fb2 Gem 18.07.2011 1.0

John Doe

Fiction Book

Part 1

Some name of Part 1

Chapter 1

Some name of Chapter 1

Episode 1

Line one of the first episode

Line two of the first episode

Line three of the first episode

Episode 2

Line one of the second episode

Line two of the second episode

Line three of the second episode

Part 2

Some name of Part 2

Chapter 3

Some name of Chapter 3

Episode 3

Line one of the third episode

Line two of the third episode

Line three of the third episode

Episode 4

Line one of the fourth episode

Line two of the fourth episode

Line three of the fourth episode

I want to get the following on the output:
Part 1
Some name of Part 1
Chapter 1
Some name of Chapter 1
Episode 1
Episode 2
Part 2
Some name of Part 2
Chapter 3
Some name of Chapter 3
Episode 3
Episode 4
Ashark (1069 rep)
May 4, 2023, 11:43 PM • Last activity: May 15, 2023, 03:05 PM
1 votes
1 answers
266 views
Best updated alternative to Linux in a Nutshell?
I'm old and forgetful. I've been using my handy-dandy copy of *Unix in a Nutshell* for years to look up syntax and such. I decided it's time to update it (it's nearly 30 years old at this point) and switch to a Linux version. However, it appears that O'Reilly has transitioned to a mostly online, ski...
I'm old and forgetful. I've been using my handy-dandy copy of *Unix in a Nutshell* for years to look up syntax and such. I decided it's time to update it (it's nearly 30 years old at this point) and switch to a Linux version. However, it appears that O'Reilly has transitioned to a mostly online, skillshare-type company and hasn't updated *Linux in a Nutshell* in more than a decade. In addition, it now covers stuff like "virtualization, wireless network management, and revision control with git", none of which I'm interested in a command reference. So before I shell out $30-65 for an outdated reference filled with stuff I don't need, are there any better alternatives? I'm looking for a physical book (because I'm old) rather than a PDF or other online reference. I'd like something that lists commands with the syntax, options, and maybe a couple of short examples. The version I have has useful chapters on sed, awk, test, and pattern matching (regex), so that would be good too. I'll probably pick up a used copy to start with but if there's something more recent or better, I'd love to hear about it.
Roger Sinasohn (119 rep)
Dec 5, 2022, 08:06 PM • Last activity: Feb 2, 2023, 06:15 AM
0 votes
1 answers
574 views
How to intercept file descriptor of file opened with inotify or others on access?
I just finished an Operating Systems course at my University, and I want to start playing with systems level programs with Rust. One of things I'm looking for is how to intercept a file descriptor of a file opened in a folder, and swap the file it is pointing to a new file. I think I can figure it o...
I just finished an Operating Systems course at my University, and I want to start playing with systems level programs with Rust. One of things I'm looking for is how to intercept a file descriptor of a file opened in a folder, and swap the file it is pointing to a new file. I think I can figure it out with a bunch of the inotify tools and crates for Rust, as well as just calling some libc functions for syscalls myself, but I'm running into issues with understanding the Linux Virtual File System. Is there like a book that explains exactly how commands such as find operate on files, and how the files are structured? I downloaded the source code for the coreutils, but I'm struggling with determining what the file struct in Linux looks like. I know asking for books or resources is against some rules or something, but I can't seem to find a definitive resource on how the kernel and utilities work together. I'm just getting started with Open Source OS development, although I am very comfortable with using Unix-based systems. Any help guiding me in the right direction would be much appreciated. Cheers!
Matanya (197 rep)
Dec 10, 2021, 02:25 PM • Last activity: Dec 10, 2021, 04:47 PM
-1 votes
2 answers
126 views
How is "fifty million man-years" development effort inside <The Art of Unix Programming>
I was reading the book There is one line claiming >The three and a half decades between 1969 and 2003 is a long time. Going by the historical trend curve in number of Unix sites during that period, probably somewhere upwards of fifty million man-years have been plowed into Unix development worldwide...
I was reading the book There is one line claiming >The three and a half decades between 1969 and 2003 is a long time. Going by the historical trend curve in number of Unix sites during that period, probably somewhere upwards of fifty million man-years have been plowed into Unix development worldwide. That's (50million man-year / 35 year) = (1.47 million man-year / year) goes into Unix development during that period. It means 1.47 million developers worked on Unix system yearly. Personally I find the number a bit hard to believe. Or am I understanding the number in the wrong way?
Karl Xu (111 rep)
Jun 13, 2021, 11:59 AM • Last activity: Jun 13, 2021, 07:09 PM
2 votes
1 answers
161 views
Unix Version 7 'learn' command (CAI) - additional configuration necessary?
I'm going through the 'Unix Programming Environment' classic by Kernighan and Pike. I discovered there was a very interesting command written by Kernighan and someone else called `learn` for computer aided instruction on Unix subjects like editing, macros and even C in version 7 and, it seems some o...
I'm going through the 'Unix Programming Environment' classic by Kernighan and Pike. I discovered there was a very interesting command written by Kernighan and someone else called learn for computer aided instruction on Unix subjects like editing, macros and even C in version 7 and, it seems some of the BSD's. I've got a copy of Version 7 up and running in SimH to have a mess around with this stuff and it does indeed have a functioning learn command. However, it only gives the introduction, which asks you to choose a subject/lesson - when you type in 'files' etc, it just returns "sorry, there is no lesson named ..." or similar. There ARE lessons, or files called files.a, macros.a in the /usr/lib/learn directory of the version I got from the simh website. Does this mean I have to do some additional setup before the lessons are ready to use? Or, perhaps the lesson scripts aren't there in this copy? At the moment, I haven't yet created a new user, seeing as the default was dmr with no password. Someone has asked about this before, but more in the direction of installing it on a modern system. Anyone know if there's a Unix I could use with simh that definitely does have this and with working lessons?
Kevin Smallman (21 rep)
Jul 28, 2019, 03:50 PM • Last activity: Jul 29, 2019, 09:11 AM
1 votes
2 answers
1098 views
Can anyone recommend some linux kernel related books for beginners?
I want to know the mechanism of Linux kernel. But I was confused by such a huge number of concepts, structs and functions after the reading of _Understanding the Linux kernel_. This book details too many concepts which make me lost in the complex net of relationships between these components. I thin...
I want to know the mechanism of Linux kernel. But I was confused by such a huge number of concepts, structs and functions after the reading of _Understanding the Linux kernel_. This book details too many concepts which make me lost in the complex net of relationships between these components. I think I want a book which has many figures to describe these relationships behind this monolithic system. This book needs to describe the mechanisms of kernel instead of details how these functions work. Is there a such book?
user3824053 (243 rep)
Sep 13, 2014, 08:24 AM • Last activity: Apr 14, 2019, 08:42 AM
30 votes
9 answers
55550 views
What is the best book to learn Linux system programming?
I am trying to learn Linux system programming, which is the best book to learn this?
I am trying to learn Linux system programming, which is the best book to learn this?
Khaja Minhajuddin (857 rep)
Aug 11, 2010, 06:26 AM • Last activity: Feb 18, 2019, 08:49 PM
3 votes
1 answers
954 views
good unix troubleshooting book
I've been trying to learn *nix and I think I'm doing pretty good as far as basic commands, and I think I understand a lot of the "monitoring" type commands etc... in short, I think I'm doing okay with syntax type stuff. And doing stuff like setup of xyz is more or less straight forward...but I reall...
I've been trying to learn *nix and I think I'm doing pretty good as far as basic commands, and I think I understand a lot of the "monitoring" type commands etc... in short, I think I'm doing okay with syntax type stuff. And doing stuff like setup of xyz is more or less straight forward...but I really want to start learning how to do is troubleshoot/diagnose problems and be able to fix them. For example, if I go to my website and it's not loading...what would be the first thing I should check for? That sort of thing. So I figured there's probably some good books out there about what to do when things go wrong, what to start looking for, how to identify what is going wrong and how to fix it etc...so I was looking for some recommendations on where I should turn to for that? Any good books out there? I did do a little bit of researching before posting here...seems like most books I've looked at so far focus on install, backup and general syntax...but that stuff is easy and straight forward to digest...I'm looking for the stuff that will help me become a better detective and *nix problem solver... p.s. - I'm currently using centOS 5.3 but from what I can tell, a lot of things are generic and can work from *nix system to *nix system so I don't think I necessarily need it to be centOS specific... Edit: I ended up getting 3 books: Linux Troubleshooting Bible Linux Server Hacks **Linux Server Hacks, Volume 2** (can't post link due to posting restrictions but you can find it easy enough from first link)
sildhe (31 rep)
Apr 2, 2011, 10:11 PM • Last activity: Dec 8, 2018, 12:24 AM
2 votes
1 answers
1388 views
Recommendation of books to setup and admin a web server in Linux
I am going to setup and admin a web server in Ubuntu Linux distribution. I installed it by default setting, and seems all works fine, and now I need to setup it to be a virtual web host server, mainly I will create more accounts and for each account, I will setup its home/folder, and ftp, so the use...
I am going to setup and admin a web server in Ubuntu Linux distribution. I installed it by default setting, and seems all works fine, and now I need to setup it to be a virtual web host server, mainly I will create more accounts and for each account, I will setup its home/folder, and ftp, so the user with the account can upload their PHP scripts to it, also I would like to make home/bin, home/lib for the account, so they can use SSH too, to install local binary or libs, even more.. I am thinking to read some books, but I don't know which one is good for me basically it could have something about how to setup virtual web host server, admin it, and how to make it secure.
Tom (155 rep)
Jan 12, 2013, 01:39 PM • Last activity: Aug 20, 2018, 11:17 PM
15 votes
1 answers
1881 views
What do all the pictures on the front of the "Unix and Linux System Administration Handbook" represent?
I'm a newcomer to Unix and Linux, and I've been trying to get up to speed on everything. One of the guides I've used is the "Unix and Linux System Administration Handbook" It's a pretty great book, and I'm enjoying reading through it, but I'm really confused by all the things that are on the cover....
I'm a newcomer to Unix and Linux, and I've been trying to get up to speed on everything. One of the guides I've used is the "Unix and Linux System Administration Handbook" It's a pretty great book, and I'm enjoying reading through it, but I'm really confused by all the things that are on the cover. While this may not be a typical question for Unix & Linux Stack Exchange, I don't think it is necessarily a bad question so I'm going to go out on a limb and ask: What do all the crazy things on the cover of this book represent? Attached is an image of the book and a reference key. Thanks for the history lesson. unix-administration-handbook.jpg 0. Flag 0. Flag (Finland's for Linus Torvalds?) 0. Bird / Cake 0. Guy in a lab coat with a baseball bat 0. Gnome 0. Clam 0. Python 0. Cowboy and two cats 0. Penguin 0. Gorilla 0. Old dude on another boat sailing away and apparently flipping off this boat 0. Two guys carved in wood with a shield 0. Octopus / Monster 0. Filing cabinet 0. Clock 0. Indian 0. Girl with a book 0. Computer using a canon 0. Window frame 0. Lady, fishing pole, and boot 0. Apple Core 0. Less and More 0. Bar of Soap / Can of Spam 0. Periscope 0. Heart / Valentine 0. Monster with Maracas ps: What is the significance of the ship?
mark (731 rep)
Dec 4, 2011, 08:45 PM • Last activity: Apr 4, 2017, 08:00 AM
5 votes
2 answers
495 views
What are all the items on the cover of the "Linux Administration Handbook"?
As I mentioned in https://unix.stackexchange.com/questions/26045/ I'm fairly new to Linux and Unix. @jasonwryan provided an excellent link to a blog that describes all of the items on the front of the first book, but is there an explanation available for all the items on the cover of the the "Linux...
As I mentioned in https://unix.stackexchange.com/questions/26045/ I'm fairly new to Linux and Unix. @jasonwryan provided an excellent link to a blog that describes all of the items on the front of the first book, but is there an explanation available for all the items on the cover of the the "Linux Administration Handbook"? I didn't see any other entries on Lisa Hanley's blog. Cover 0. Cloud 0. Penguin Skiing 0. VISTA Helicopter 0. Tombstone 0. Coffin 0. Book 0. Dead Cat 0. Boy in a cube 0. Monkey on a vine 0. Tire 0. Restrained Spider 0. Cliff 0. Spock 0. Hand 0. Doctor 0. Tunnel
mark (731 rep)
Dec 4, 2011, 09:38 PM • Last activity: Feb 26, 2017, 08:07 PM
62 votes
11 answers
50489 views
Recommended reading to better understand Unix/Linux internals
I've worked on *nix environments for the last four years as a application developer (mostly in C). Please suggest some books/blogs etc. for improving my *nix internals knowledge.
I've worked on *nix environments for the last four years as a application developer (mostly in C). Please suggest some books/blogs etc. for improving my *nix internals knowledge.
Hemant (6950 rep)
Aug 10, 2010, 08:04 PM • Last activity: Dec 9, 2015, 03:17 AM
0 votes
2 answers
1084 views
Windows Internals for Linux
I've recently been reading Windows Internals version 6 (from Microsoft Press), and found it thoroughly enjoyable. I'm now using Kubuntu on my work machine, and as such have some desire to learn a bit about how Linux differs from Windows. I want to know everything that I can, and I want it in a decen...
I've recently been reading Windows Internals version 6 (from Microsoft Press), and found it thoroughly enjoyable. I'm now using Kubuntu on my work machine, and as such have some desire to learn a bit about how Linux differs from Windows. I want to know everything that I can, and I want it in a decent format. The Windows book is in a very good format for me, and as such I want something as close to it as possible. So, although there probably isn't a book released by Canonical called "Ubuntu Internals" or "Linux Internals", I'm looking for something as close to that as possible. Can anyone recommend anything? Here's a section of the blurb from the Windows Internals, book, which more closely depicts what I'd like to see of Linux: * Understanding how core system and management mechanisms work - including object manager, synchronisation, Wow64, Hyper-V and the registry. * Examine the data structures and activities behind processes, threads, and jobs. * Go inside the Windows security model to see how it manages access, auditing, and authorization. * Explore the Windows networking stack from top to bottom - including APIs, BranchCache, protocol, and NDIS drivers, and layered services. * Dig into internals hands-on using the kernel debugger, performance monitor, and other tools.
XtrmJosh (143 rep)
Aug 7, 2015, 07:28 AM • Last activity: Aug 7, 2015, 09:26 AM
17 votes
3 answers
1258 views
Looking for an old classical Unix toolkit textbook
I am looking for a book about the Unix command-line toolkit (sh, grep, sed, awk, cut, etc.) that I read some time ago. It was an excellent book, but I totally forgot its name. The great thing about this specific book was the running example. It showed how to implement a university bookkeeping system...
I am looking for a book about the Unix command-line toolkit (sh, grep, sed, awk, cut, etc.) that I read some time ago. It was an excellent book, but I totally forgot its name. The great thing about this specific book was the running example. It showed how to implement a university bookkeeping system using only text-processing tools. You would find a student by name with grep, update grades with sed, calculate average grades with awk, attach grades to IDs with cut, and so on. If my memory serve, this book had a black cover, and was published circa 1980. Does anyone remember this book? I would appreciate any help in finding it.
Little Bobby Tables (349 rep)
Jan 12, 2011, 08:59 AM • Last activity: Aug 13, 2014, 07:50 PM
3 votes
2 answers
959 views
Is there an equivalent book/resource to "The Linux Programming Interface" for FreeBSD?
Most of you here are probably aware of the famous *The Linux Programming Interface*, which presents a truly masterful guide to the Linux and general POSIX APIs. I know that much of the general POSIX knowledge can be applied to all Unix/Unix-like systems. However, I'm interested as to whether there i...
Most of you here are probably aware of the famous *The Linux Programming Interface*, which presents a truly masterful guide to the Linux and general POSIX APIs. I know that much of the general POSIX knowledge can be applied to all Unix/Unix-like systems. However, I'm interested as to whether there is an equivalent book, document or resource concerning lower level FreeBSD systems programming and interfaces that are exclusive to it, such as GEOM and devd. Or should I simply stick to manpages and docs?
daemonenclave (31 rep)
Jun 7, 2014, 06:51 PM • Last activity: Jun 15, 2014, 03:37 PM
5 votes
2 answers
6359 views
Is the Unix Power Tools book still relevant today?
I was wondering if the _Unix Power Tools_ book, Third edition, is still relevant today? I want to order it but I am afraid it contains only outdated material. If so, is there a recent similar book?
I was wondering if the _Unix Power Tools_ book, Third edition, is still relevant today? I want to order it but I am afraid it contains only outdated material. If so, is there a recent similar book?
Geert Van Laethem (153 rep)
Jun 25, 2013, 07:19 PM • Last activity: Jun 25, 2013, 09:01 PM
13 votes
2 answers
1731 views
Plan 9 from Bell Labs book
I would really like to obtain a book on Plan 9's design and ethos. Do such things exist? Anybody have a recommendation? (Asking here on the basis that Plan 9 was once meant to be Unix's successor, AIUI)
I would really like to obtain a book on Plan 9's design and ethos. Do such things exist? Anybody have a recommendation? (Asking here on the basis that Plan 9 was once meant to be Unix's successor, AIUI)
adrianmcmenamin (373 rep)
Jun 21, 2012, 12:41 PM • Last activity: Dec 3, 2012, 01:25 AM
2 votes
1 answers
744 views
Book or online article on analysis and tuning Linux system performance
I am looking for a good book or online article on analysis and tuning Linux system performance. So far I've found [openSUSE 12.2 System Analysis and Tuning Guide][1] which looks promising. Any other recommendations? [1]: http://doc.opensuse.org/documentation/htmlsingle/openSUSE/opensuse-tuning.html
I am looking for a good book or online article on analysis and tuning Linux system performance. So far I've found openSUSE 12.2 System Analysis and Tuning Guide which looks promising. Any other recommendations?
vitaut (141 rep)
Sep 19, 2012, 04:10 PM • Last activity: Sep 19, 2012, 06:38 PM
0 votes
3 answers
2842 views
Books/Resources which explain TCP/IP kernel implementation
I only know about: 1) [Internetworking with TCP/IP: Vol.II, Design, Implementation, and Internals][1] 2) [TCP/IP Illustrated, Vol. 2: The Implementation][2] but these are quite dated. I am particularly interested in Open source implementations. Any ideas? EDIT: I found another book 1) [TCP/IP Archit...
I only know about: 1) Internetworking with TCP/IP: Vol.II, Design, Implementation, and Internals 2) TCP/IP Illustrated, Vol. 2: The Implementation but these are quite dated. I am particularly interested in Open source implementations. Any ideas? EDIT: I found another book 1) TCP/IP Architecture, Design and Implementation in Linux
Bruce (143 rep)
Aug 9, 2012, 05:32 PM • Last activity: Aug 14, 2012, 09:16 AM
1 votes
1 answers
2654 views
What is the best book every Unix or Linux user should read?
> **Possible Duplicate:** > [Recommended reading to better understand unix/linux internals](https://unix.stackexchange.com/questions/80/recommended-reading-to-better-understand-unix-linux-internals) There are a lot of Unix an Linux books. Then I'm curious to know. which book is popular among Unix or...
> **Possible Duplicate:** > [Recommended reading to better understand unix/linux internals](https://unix.stackexchange.com/questions/80/recommended-reading-to-better-understand-unix-linux-internals) There are a lot of Unix an Linux books. Then I'm curious to know. which book is popular among Unix or Linux user? (content about programming)
fronthem (5237 rep)
Mar 16, 2012, 07:28 AM • Last activity: Mar 16, 2012, 08:52 AM
Showing page 1 of 20 total questions