The Software Developer's Guide to Linux: A practical, no-nonsense guide to using the Linux command line and utilities as a software developer David Cohen - The ebook in PDF and DOCX formats is ready for download now
The Software Developer's Guide to Linux: A practical, no-nonsense guide to using the Linux command line and utilities as a software developer David Cohen - The ebook in PDF and DOCX formats is ready for download now
https://ebookmass.com/product/a-friendly-guide-to-software-
development-what-you-should-know-without-being-a-developer-leticia-
portella/
https://ebookmass.com/product/linux-and-lpic-1-guide-to-linux-
certification-5th-edition-jason-w-eckert/
Linux+ and LPIC-1 Guide to Linux Certification, 5th
Edition Jason W. Eckert
https://ebookmass.com/product/linux-and-lpic-1-guide-to-linux-
certification-5th-edition-jason-w-eckert-2/
https://ebookmass.com/product/comptia-a-guide-to-software-managing-
maintaining-and-troubleshooting-ninth-edition-edition-andrews/
https://ebookmass.com/product/the-enterprise-linux-administrator-
journey-to-a-new-linux-career-1st-edition-kenneth-hitchcock/
The Software Developer’s
Guide to Linux
David Cohen
Christian Sturm
BIRMINGHAM—MUMBAI
The Software Developer’s Guide to Linux
Copyright © 2024 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in
any form or by any means, without the prior written permission of the publisher, except in the case of brief
quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information
presented. However, the information contained in this book is sold without warranty, either express or
implied. Neither the authors, nor Packt Publishing or its dealers and distributors, will be held liable for any
damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products
mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee
the accuracy of this information.
ISBN 978-1-80461-692-5
www.packt.com
Contributors
Christian Sturm is a consultant on software and systems architecture, having worked in var-
ious technical positions for well over a decade. He has worked as an application developer for
the frontend and backend at companies large and small, such as zoomsquare and Plutonium
Labs. On top of that, he is also an active contributor to various open source projects and has a
deep understanding of fields including operating systems, networking protocols, security, and
database management systems.
About the reviewers
Mario Splivalo works as a consultant dealing with databases extended into modern cloud-
based architectures. He also helps companies design their infrastructure using IaaC tools such as
Terraform and AWS Cloudformation. For five years, Mario worked with Canonical as an OpenStack
engineer.
Mario’s fascination with computers started back when Commodore 64 dominated the user space.
He took his first steps using BASIC on his dad’s C64, quickly shifting to Assembler. He gradually
moved to PCs, finding a great love for programming, systems design, and database administra-
tion. He switched to Linux (Knoppix, then Ubuntu, and never looked back) in the early 2000s,
continuing as a database administrator, programmer, and system administrator.
Nathan Chancellor is an independent contractor working on the Linux kernel, based in Ar-
izona, US. As a developer, his focus is on improving the compatibility between the Linux kernel
and the LLVM toolchain. He has used Linux since 2016 and it has been his primary development
operating system since 2018. His distributions of choice are Arch Linux and Fedora.
Learn more on Discord
To join the Discord community for this book – where you can share feedback, ask questions to
the author, and learn about new releases – follow the QR code below:
https://packt.link/SecNet
Table of Contents
Preface xxiii
touch – create an empty file, or update modification time for an existing one • 14
mkdir – create a directory • 14
rmdir – remove empty directories • 15
rm – remove files and directories • 15
mv – move or rename files and directories • 16
Getting help ����������������������������������������������������������������������������������������������������������������������� 17
Shell autocompletion �������������������������������������������������������������������������������������������������������� 18
Conclusion ������������������������������������������������������������������������������������������������������������������������ 20
cd • 55
touch • 56
less • 57
tail • 57
mv • 57
Moving • 57
Renaming • 58
cp • 58
mkdir • 58
rm • 58
Editing files ����������������������������������������������������������������������������������������������������������������������� 59
File types ��������������������������������������������������������������������������������������������������������������������������� 60
Symbolic links • 61
Hard links • 62
The file command • 62
Advanced file operations ��������������������������������������������������������������������������������������������������� 63
Searching file content with grep • 63
Finding files with find • 64
Copying files between local and remote hosts with rsync • 65
Combining find, grep, and rsync • 66
Advanced filesystem knowledge for the real world ����������������������������������������������������������� 67
FUSE: Even more fun with Unix filesystems • 68
Conclusion ������������������������������������������������������������������������������������������������������������������������ 69
Nano ��������������������������������������������������������������������������������������������������������������������������������� 72
Installing nano • 72
Nano cheat sheet • 72
File handling • 73
Editing • 73
Search and replace • 73
Table of Contents xi
Vi(m) ��������������������������������������������������������������������������������������������������������������������������������� 73
Vi/vim commands • 74
Modes • 74
Command mode • 74
Normal mode • 75
Tips for learning vi(m) • 76
Use vimtutor • 76
Think in terms of mnemonics • 76
Avoid using arrow keys • 76
Avoid using the mouse • 77
Don’t use gvim • 77
Avoid starting with extensive configuration or plugins • 77
Vim bindings in other software • 79
Editing a file you don’t have permissions for �������������������������������������������������������������������� 79
Setting your preferred editor �������������������������������������������������������������������������������������������� 79
Conclusion ����������������������������������������������������������������������������������������������������������������������� 80
"Un grand nom coûte cher dans les temps où nous sommes,
Il fant rompre avec Dieu pour captiver les hommes."
FOOTNOTES:
[28] Lettres de Jean Reboul de Nîmes, avec une Introduction par M. de Poujoulat.
Michel Lévy Frères. Paris, 1866.
[29] Romans xi. 24.
[30] Uncultivated tracts of land bordering the sea-shore of Brittany.
[31] 1 Kings ix. 21.
[32] This name was given to the market-women who had their regular seats
around the guillotine, and knitted diligently, at the same time insulting the victims
while the executioner did his bloody work.
[33] See a translation of this poem in The Catholic World for July.
[34] Alluding to his own vicissitudes during the French emigration.
[35] Literally, "Exile needs even its very crumbs."
[36] Smock-frock, or working-clothes.
[37] By Monchharem, a young Persian attached to the staff of Marshal Paskievicz.
[38] See the second article on Jerome Savonarola, Catholic World, July, 1873.
[39] Literally "big-drum century."
[40] More expressive in the original, le blanc d'œuf battu—literally "white of eggs
beaten up."
[41] Untranslatable: the meaning is, that the vigor is that of a prize-fighter, the
ruggedness not of a philosopher, but of a low ruffian.
[42] Simpler and more forcible in the original: le sentiment de lui-même—"the
consciousness of himself."
MARY.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookmass.com