How to list all empty directories on your Linux system.
How to use the command line to list empty directories on a Linux system.
How to use the command line to list empty directories on a Linux system.
This is how to list all directories starting with a . on Linux. This is a very useful Linux trick. ┌──(john㉿DESKTOP-PF01IEE)-[~] └─$ ls -ld .*/ drwxr-xr-x 11 root root 4096 Feb 12 09:02 ../ drwxr-xr-x 21 john john 4096 Jun 15 15:58 ./ drwx—— 3 john john 4096 Feb 8 07:38 .BurpSuite/ drwx—— 7 john … Read more
Renaming folders is very easy. I have a folder with subdirectories named from 1 to 9. And I wish to rename them folder1 to folder9. This can be easily done with bash. This example will take care of this problem easily. 4.4 Fri Jan 31 jason@Yog-Sothoth 0: $ for i in $(seq 9);do mv $i … Read more
Setting defaults for new users on a Linux system To set defaults for new users on your Linux system, the /etc/skel folder will come into play. You may place the .bash_profile, .bashrc & .bash_logout files that set defaults for the user such as the BASH shell prompt, and the logout and login options. This is … Read more
I recently had to move some folders to my home directory on my Debian GNU/Linux 6.0 installation as the root user and I then had to change the ownership of the folders and the files within to my current user. For example, I copied the ~/.themes folder to my home folder and I had to … Read more