eXerCISe 1-1: WOrKING WIth LINUX COMMaNDS 1. Log in to your Linux machine as root and open a shell. 2. type useradd lisa to create a user with the name lisa. 3. type passwd lisa. this command will prompt you for the password that you want to use. enter the password “password” and when asked for confirmation, enter it again. notice that this command will give you a warning about the password being too simple, which you can safely ignore. 4. use Ctrl-D to close the shell you are currently logged in to. if it was a nongraphical shell, you’ll now see a login prompt. if you’re working from a graphical environment, find the option that logs you out of your current session. 5. Log in again, this time as user lisa and open a shell. 6. type ls -l iwehig. this should give you an error message. 7. type ls il iwehig 2> ~/errors. this command redirects all errors to a file with the name errors that is created in your home directory. 8. type cat ~/errors to view the contents of this file. 9. type ls --help to view a list of options that can be used with the ls command. You’ll notice that the list is too long and doesn’t fit on the screen. 10. type ls --help | less to pipe the output of the ls command to less. You can now use the arrow keys to move up and down in the output. 11. press q to quit the less viewer. eXerCISe 1-2: GettING heLp 1. type man 3 intro. every section in the man pages has an intro page, describing the purpose of the section. 2. type man lvcreate. use /examples to look for the word examples. many man pages have an examples section near the end of the man page. in this section you can often find useful usage information. 3. type man -k sander. it will tell you “nothing appropriate”. if this happens on commands that you do expect to be available on your computer, it’s a good idea to use mandb to generate the new man pages index file. eXerCISe 1-3: WOrKING WIth the SheLL 1. Log in as root. 2. type echo LANG. this echoes the text Lang to the Stdout. 3. type echo $LANG. this echoes the current contents of the language variable to the Stdout. 4. type.UTF-8. You have now set the language variable to the French language. 5. type ls --help. You’ll notice that the output of the command shows in French. notice that on some distributions the language packages are not installed by default, so you won’t see a change in language after doing this. 6. Create a user florence, using the command useradd -m florence. use passwd florence to set the password for user florence. Set it to “password” 7. Log in as user florence and type echo.UTF-8 >> ~/.bashrc. this appends the Lang variable with its new value to the .bashrc file in this users home directory. 8. Still as florence, type ls --help. You’ll see the output still in english. 9. Log out, and log back in again as user Florence. type ls --help again. You should now see French language output. 10. type echo’ and press enter. as the command is incomplete, it will show a > indicating it is waiting for additional input. 11. use Ctrl-C to stop the command that is waiting.