Remove directory in Ubuntu server / Linux with a single code.
Here, we are talking about how to remove a full directory in Ubuntu Server easily. Generally who uses Ubuntu, knows Linux language very well. But who are beginners, this code will help you definitely.
Open your SSH and login to it and copy & paste below command. Remember, replace your directory or file name with “mydir”.
rm -r mydir
Hit enter and restart your SSH, it is removed now! So it’s a very simple and easy way to remove a directory from your Ubuntu Server with a single code.