Linux: Find Out Directory Size Command
To get the size of a Directory in Linux, use du command. du command is used to find the file space usage & summarize disk usage of each file/directory. To find the size of /usr directory: du /usr OR...
To get the size of a Directory in Linux, use du command. du command is used to find the file space usage & summarize disk usage of each file/directory. To find the size of /usr directory: du /usr OR...
Many times , when we create shell scripts we try to do repetitive tasks through functions. Some functions take arguments & we have to check the no. of arguments that are passed to it. Each bash shell function has the...
Many time we face situations where we have many empty lines in a file or script. Then how can we delete only those empty lines & make the file compact? I tried following steps & they worked like charm. for...
There are many situations in which we have to find out all files that have been modified on a specific date using find command under Linux. There are two ways to list files in given directory modified after given date of the...
There are a few cases where having passwordless access to a machine is quite convenient or necessary. I’m looking up for commands that I can just copy and paste to do it right quick. Below are the steps:- 1. Generate...