IT Knowledge Base

Technical Repository

HowTo: Linux – How to find out which file system is causing the DF command to hang

If you type “df -k” in a terminal window, and the command hangs (does not return), to find which filesystem is causing the hang: 1.┬áType mount -p to print the list of mounted file systems: # mount -p 2. Now type your df command again: # df -k Compare the output of the two commands, […]

Read More

HowTo: Linux Shell Scripting – Concatenate two variables with an underscore.

Wrap each variable in a curly brackets. #!/bin/bash _Directory=$/backups/ _FileName=$myfiles.bak echo ${_Direcotry}_${_FileName}) Output is: /backups/myfiles.bak

Read More