Resources: The Linux Documentation Project: http://www.tldp.org – get the worldwide collection of HOWTOs. “Shell Scripting Tutorial for Linux/Unix Beginners” at Guru99: https://www.guru99.com/introduction-to-shell-scripting.html SS64: A Great Reference Site The CTDP Linux User’s Guide Topic: Finding Files in Linux Topic: Build Your Own Photo Server Shell Commands: Padraig Brady’s Command Line Tips A Short Catalog of Bourne/Bash …
WINE and Emulators
Running Windows and Macintosh Programs In Linux Read Chapter 5, Accessing and Running Applications, Running Windows, DOS and Macintosh Applications, in the Red Hat Linux Bible. Lots of software is available pre-compiled to run on Linux. Almost any UNIX-compatible program for which source code is available can be compiled, if packages aren’t already available. But …
grep
One of the most useful commands you will use is grep. Its syntax is: grep [-b] [-c] [-E] [-F] [-h] [-i] [-l] [-n] [-s] [-v] [-w] search_text source_text Think of this command as “get report.” The key is, report of what? grep options grep [-b] [-c] [-E] [-F] [-h] [-i] [-l] [-n] [-s] [-v] …
Text Editors
First, about vi The program called by the command vi on Linux systems is actually vim, or “vi improved.” On other Unix systems, for instance an AIX system, you may be using either vi or vim (and won’t be able to tell). To find out about vi/vim, on the command line type: vi Type :q …
Building Shell Commands
Building Shell Commands Some Common Linux Commands Command Purpose Usage clear Clear your terminal’s screen clear reset Reset your terminal to default settings reset finger Display a user’s information finger; finger user who List all currently logged-in users who w List current users and their tasks w whoami Show your own current logged-in name whoami …
Compression Utilities
tar and zip The zip utility has been around since long before the advent of WinZip. In fact it predates pkzip, the first popular DOS compression/archiving utility. Unix, as usual, breaks things down to more elemental processes: zipping (compressing a file) is separate from archiving (enclosing a group of files in an “envelope”). In the …
Mounting & Dismounting
What Is Mounting? Mounting is simply the process of “plugging” a directory into your file system tree. You can mount a whole partition, for instance when you add a hard drive. Or you can mount a shared network directory into your local file system tree. There are a couple of critical principles to know. First, …
Sharing Files
A Safe Environment for Multiple Users Unix systems have multiple users – and a permissions system that lets each user share or protect their files. This unique system has some odd twists. For example, did you know that, to rename or remove a file, you need write permission for the directory that the file is …
Permissions
What are files? As we’ve discussed before, files are globs of data, in either text or binary form. File names can be up to 256 characters long with “-“, “_”, and “.” characters along with letters and numbers. When you do a long file listing, you see 10 characters on the left that indicate file …
Filesystems
The Filesystem Tree The Unix and Linux filesystem is based on the Filesystem Heirarchy Standard (FHS). (You can research it at http://www.pathname.com/fhs/ .) There are no C: drives, D: drives or any other lettered drives. Instead, all disks are mounted into a common filesystem tree. You can even mount other computers into this tree. Everyone …