By default in Ubuntu 13.10, when deleting files on the command line using the “rm” command, no confirmation displays before the file is deleted. However, you may want that extra layer of protection. You can easily turn on the confirmation for deleting files.
To begin, press Ctrl + Alt + T to open a Terminal window. Then, type the following command at the prompt and press Enter.
gedit ~/.bashrc
This opens the bashrc file in the text editor gedit.
Enter the following line in the “Alias definitions” section:
alias rm=’rm –I’
Click Save to save the file.
Click the X in the upper-right corner of the gedit window to close it.
The same file must be changed for the root user. To do this, enter the following line at the prompt.
sudo gedit /root/.bashrc
Type the password when prompted and press Enter.
If you forget to precede the gedit command above with “sudo”, you’ll see the following message in gedit. Close gedit and enter the above command again starting with “sudo”. Edit the bashrc file for the root user the same way we described above, save the file, and close gedit.
Now, when you delete a file using the “rm” command, a confirmation displays to make sure you want to delete the file. Press “y” to delete the file, or “n” to keep it.
When you enter “rm –r” to delete a folder, you will also get the confirmation.
This simple safeguard can save your system if you accidentally delete an important file or folder.
Wi-Fi has become such an ingrained part of our everyday lives that we tend not to give it much thought unless it has stopped working. But what if your family has a newborn baby in the house? Are there any dangers that new parents should be aware of?
Think you know the answer? Click through to see if you're right!
Word allows you to do much more than simply insert or place graphics. For our fourth lesson in this series, we will focus on the graphic design functions in Word such as pictures, SmartArt, screenshots, and other items that can be found on the “Insert” tab.
Dedicated GPS devices are going the way of the dodo, and for good reason. That smartphone or tablet you have can be a capable GPS with turn-by-turn navigation. This works even if you don’t have a data connection.
Think you know the answer? Click through to see if you're right!
Microsoft recently announced their intention to change SkyDrive’s name to OneDrive and add new features in the process. Well, today is the day when it has all gone live. Now you can tuck into all the new OneDrive goodness and even earn extra storage for free!
In this lesson, we’re going to delve into tables, which are a huge part of laying out well formatted documents. After we discuss tables, we’ll cover some other controls that will help round out your formatting prowess, including adding links, using symbols, creating math equations, and quite a bit
Suppose you are having a bad day and in a hurry to login to a favorite website, then accidentally submit your password in the username text box instead. Should you be worried and change your password for that website, or is it just groundless fear?
Think you know the answer? Click through to see if you're right!
Today’s Geek School lesson in this Word Formatting series will help you finally understand how to format your paragraphs and make them look the way you want, and create bulleted or numbered lists with confidence.