Fix: Sudo Command Not Found

The sudo command is used to execute applications with root privileges. Sometimes, when trying to use the sudo command, it will give an error message that says sudo: command not … Read more

Bash Concatenate Strings

When you need to combine two strings in Bash, there are a few different ways to do it. We will go over all of the options so that you know … Read more

Bash Split String Examples

In bash scripting, due to the lack of any built-in string function, it is exceptionally challenging for a programmer to split the string data in bash. It requires the usage … Read more

What is /dev/shm and What is it Used For?

What is /dev/shm and what is it used for?

/dev/shm is shared memory. It is offered in Linux as a way for memory to be accessed simultaneously by multiple programs.

shm is also known as tempfs or temporary file storage. On Linux it will appear as a mounted file system that you can access directly. Instead of writing to a permanent storage device such as your hard drive, it writes to virtual memory (i.e., it lives in RAM). Since it is memory, anything written to this file system will be removed the next time you reboot.