If you don’t have permission to delete content from the parent directory (directory the file lives), you won’t be able to. When you run the above command and you have rights to delete from that directory, the command will delete the file defined above. If you want to use the rm command to remove a file named Private.txt, you simply run the commands below:
#UBUNTU SECURE ERASE HOW TO#
By default, the / directory is not removedīelow are some examples of how to run and use the rm on Ubuntu Linux. Use the –no-preserve-root to not treat ‘/’ specially. Use the -d or –dir to remove empty directories Use the -r or -R or –recursive to remove directories and their contents recursively
Use the -i option to prompt before every removal or a file Use the -f or –force to ignore nonexistent files and arguments and never prompt before deletion with the file(s) you want to remove or delete When you’re ready to learn how to use the rm commands, follow the guide below:īelow are some options of the rm command: FILE. Most Linux users should be able to do some basic command line tasks. However, when you’re learning to use and understand Ubuntu Linux, you should also learn how to use the command line to terminal. Ubuntu is an open source Linux operating systems that runs on desktops, laptops, server and other devices…ĭuring your introduction, you will find that Linux isn’t so different than Windows and other operating systems in so many ways, especially when it comes to using the system to get work done.…īoth Ubuntu and Windows systems allow you to be productive, easy to use, reliable and enable you to install and run thousands of programs from gaming to productivity suite software for individuals and businesses. It’s a great Linux operating system for beginners.
If you’re a student or new user looking for a Linux system to start learning on, the easiest place to start is Ubuntu Linux OS….