Learn how to combine the ls command with head to show us the five last modified files in a directory.
Java Software Developer and DevOps engineer from The Neterlands with 15+ years experience in developing enterprise web applications. Cloud enthousiast. World traveler and scuba diver.
Here's what I've written (so far):
Baeldung on Linux on Java
- Scripting (5)
- Administration (5)
- Processes (4)
- Files (3)
- Security (2)
- Filesystems (2)
- File Viewing (2)
- Web (1)
- Networking (1)
- Installation (1)
- File Searching (1)
- File Compression (1)
In this tutorial, we’ll see how to loop through the contents of a file, line by line. This might sound like a trivial task, but there are some caveats that we need to be aware of.
Explore the Bash feature called tilde expansion.
Learn how to copy our SSH keys to other machines
A quick and practical guide to Linux exit codes.
Learn how to use set -e to make bash scripts terminate immediately when some error occurs.
Learn how to make curl permanently send all requests through a proxy server.
Learn about the process of filename expansion, also known as globbing.
Learn how to make crontab -e use our favorite editor.
Learn how to map hostnames to specific ports.
Learn why it’s not a good idea to enable root logins over SSH.
Let’s see how we can automatically answer yes in our scripts.
Learn how we can manage environment variables.
Learn how to interpret the output of the time command.
Learn how to use gunzip to decompress gzip-compressed archives.
Learn four forms of ln command to create symbolic links.
Learn how to use the kill command to terminate processes.
Learn how to test Linux cron jobs.
Explore ways in which we can make a program executable from anywhere in our system