Tag: command

How to check the disk usage of your VPS

The df utility displays the disk space usage on all mounted filesystem. The -T option prints the filesystem type as well. By default, df measures the size in 1K blocks, which could be a little difficult for a desktop user to decipher. Use the -h option to get the more understandable output: The VPS system

Delete files recursively

The task is to delete files from the folder and sub-folders, maybe sub-sub-folder. Say I want to delete .htaccess from every folder, but keep all others no-touch. It is hard to go into each folder and delete the file. It takes time and also very easy to miss some folders. There is one command in

Is your Linux 32bits or 64bits

Some times you need to find out what version is your Linux OS. Just like when I need to download a module, I have to find out which one is right for my OS. Then I can download 32bit, or 64bit package. The most common way to find your Linux installation is enter the following