28.09.2018 Views

Linux Dummies 9th

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

406<br />

Part V: The Part of Tens<br />

<strong>Linux</strong> allows you to use spaces and other characters in filenames that you<br />

may or may not be able to use in filenames on other operating systems.<br />

However, some <strong>Linux</strong> applications may stumble when they encounter file or<br />

directory names containing spaces. Usually it’s a safe bet to stick with alphanumeric<br />

characters and avoid spaces and odd characters (such as question<br />

marks and exclamation points).<br />

And here’s a bonus, all-purpose troubleshooting tip for an all-too-common<br />

situation . . . .<br />

“Aaargh! I Forgot My Root<br />

Password! What Do I Do?”<br />

Fear not — you have a way around this problem! You need to boot into singleuser<br />

mode, which you can accomplish as follows:<br />

1. Reboot your machine.<br />

2. When you see the blue screen with the words Press any key to<br />

enter the menu, press a key.<br />

It doesn’t matter which key you press at this point.<br />

3. At the GRUB boot screen, press E.<br />

A configuration file opens.<br />

4. Use the arrow keys to go to the line starting with kernel.<br />

5. Press E to edit the kernel line. At the end of the line, add the word<br />

single.<br />

6. Press Enter to put the change into place, and then press B to boot the<br />

machine.<br />

7. Type passwd and then enter the new password twice as directed.<br />

8. Type exit and then boot the machine normally.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!