Free Unix and Linux tutorials: Wow, this blog post makes me feel a little old. As I've been working on reorganizing the website lately, I found that I've written more than seventy-five Unix and Linux tutorials. To try to make them easier to find, I created this page to link most of them up.
So, to that end, here is a list of at least 75 free Unix and Linux tutorials I've written. I hope you enjoy them, and I hope they're helpful.
Basic Unix and Linux commands
This is a list of tutorials about Linux commands I use every day:
- Linux cat command
- Linux cat command examples
- The Linux cd command (change directory)
- Linux cd command examples
- Linux cp command (copy command) examples
- Linux grep (search) command examples
- Linux ls command examples (list files and directories
- Linux ls command - sort by file size
- Linux ls command - show only subdirectories
- Linux ls command - size and permissions
- Linux more command
- Linux mkdir command examples
- Linux mkdir command examples ("make directory")
- Linux mkdir command - create multiple directories
- Linux mv command (move command) examples
- Sort Linux ps command output by memory use
- Linux sort command examples
- View Linux memory use with free and top
Linux disk space tutorials
Here are a few articles related to Linux disk space use:
Unix and Linux search commands (find, locate, grep)
Linux grep command examples:
- Linux grep command (search command) examples
- Use grep to search for multiple string (regex) patterns
Linux find command examples:
- Linux find command examples
- More Linux find command examples
- Linux find command recipes
- Linux find command - how to use multiple filename patterns
- Linux find command - copy to many directories
- Linux find command - reverse a search
- Search multiple directories with find
- Combine find and grep to search subdirectories
Linux locate command examples:
- Linux locate command examples
- Exploring the Linux locate command (more locate examples)
- Linux locate and find commands (case-insensitive)
Unix and Linux archive commands
All of these Unix and Linux commands are related to creating and accessing backup files, or archives. The Linux tar command is the most common archive command, and is often combined with gzip, as shown in many of these tutorials:
- Linux tar command ("tape archive")
- Linux tar command examples
- Linux gzip commands (gzip, gunzip, zcat, zgrep, zmore)
- tar gzip examples
- Create huge Linux archives (backups) with find, xargs, and tar
- Create large backups (archives) with pax instead of tar
- How to display gzip file contents (zcat, zmore)
- How to grep a gzip file
Other slightly advanced Unix and Linux commands
Here are some slightly more advanced Linux command tutorials. If you're new to Unix and Linux, the first article on "Unix pipe commands" is actually something you need to know about very early in your command line career:
- Unix pipe command examples
- Run Linux background processes with nohup
- Linux chmod command (change mode, change permission)
- A Linux sort command example (grep and sort)
- Remove "invisible" characters with the Unix tr command
- Linux wget command
Unix and Linux shell script examples
Very popular:
- Unix and Linux shell script reference page (cheat sheet)
- A Linux shell script to send email
- Linux shell script - bad interpreter error
Looping examples:
- Linux shell script while loop and sleep example
- Bourne shell script - how to loop through all files
- A shell script to rename multiple files
- A shell script to batch rename all filenames to lowercase
Other programs/commands, like Java, MySQL, and wget:
- Shell script to start MySQL on a non-standard port
- Compile a Java program with this shell script
- A shell script to search Java jar files
- Build a Java classpath in a Linux shell script
- Linux wget shell script
A few more:
- Use Linux sed and wc to count leading blanks in a file
- A sed script to transform poorly-formatted HTML
Linux sed (stream editor) command examples
The Linux sed command lets you apply editing commands to files without opening the file with an editor. You basically say "I want to run these commands on these files", and sed does the work for you:
- Linux sed command - use sed to modify multiple files
- A Linux sed command example
- Linux sed command - extract lines from a file
Other Unix and Linux tutorials
This is a collection of miscellaneous Linux tutorials that didn't fit into the categories listed above:
- A sample bashrc file
- Unix alias command
- Linux head and tail commands
- A multiline Linux command prompt
- Linux script command
- Linux tee command
- Linux crontab example - run a command as another user
- Linux lsof command - list open files
- Linux lsof command - find files open by a running process
- Batch resize images with mogrify
Online Linux help (Linux man page docs)
- Linux cp man page
- Linux crontab man page
- Linux df command man page
- Linux find command man page
- Linux grep command man page
- Linux ls command man page
- Linux mkdir command man page
- Linux ps command man page
- Linux rm command man page
- Linux mv command (move command) man page
- Linux tar command man page
- Linux chmod command man page
- Linux du command man page
- Linux scp command man page
- Linux yum command man page
Linux tutorial collection summary
Phew, that's a list of the best Unix and Linux tutorials on our website at this time. If you have any suggestions for additionals tutorials just leave a comment below, and I'll see what I can do.