The mktemp command can help us create a temporary file or directory in the correct location on a Linux system. We look at how it works and some tips for using it.
Baeldung Author
Alex
Here's what I've written (so far):
How to Write Bash Variable Contents to a File
Filed under File Editing, Scripting
Learn multiple ways to write the contents of a Bash variable to a file in Linux.
Find the Total Size of All Files in a Directory
Filed under Filesystems
We may sometimes wish to calculate the size of directories in our filesystem. We explore how to use the du command to achieve some common use cases.
Exclude grep From ps Results
Filed under Processes
When we use grep to filter the results of ps, it often finds itself as well as the desired process. We discover a couple of tricks to avoid this happening.
How to Kill a Detached screen Session
Filed under Processes
Learn how to kill a detached GNU screen session from the command line.
What is a .pid File?
Learn a common way to store the PID using a .pid file and an example of how you would use it
Guide to the Linux screen Command
Filed under Administration
Working with multiple terminals on Linux can get hard to manage, especially setting up the connections each time. The screen utility solves that for us.
Guide to the Linux wc Command
Filed under Files
Learn how to use wc to count lines, words, or even characters in a file.