ABSTRACT

Chapter 0

Create a directory called Raspberry in your home directory. What command line did you use to do this?

Give a command line for displaying the files lab1, lab2, lab3, and lab4. Can you give two more command lines that do the same thing? What is the command line for displaying the files lab1.c, lab2.c, lab3.c, and lab4.c? (Hint: use shell metacharacters.)

Give a command line for printing all the files in your home directory that start with the string memo and end with .ps on a printer called upmpr. What command line did you use to do this?

Give the command line for nicknaming the command who -H as W . Give both Bash and C shell versions. Where would you put it if you want it to execute every time you start a new shell?

Type the command man ls > ~/Raspberry/ls.man on your system. This command will put the man page for the ls command in the ls.man file in your Raspberry directory (the one you created in Problem 1). Give the command for printing two copies of this file on a printer in your lab. What command line would you use to achieve this printing?

What is the mesg value set to for your environment? If it is on, how would you turn it off for your current session? How would you set it off for every login?

What does the command lpr -Pqpr [0–9]*.jpg do? Explain your answer.

Use the passwd command to change your password. If you are on a network, be aware that you might have to use the yppasswd command to modify your network login password. Also, make sure you abide by the rules set up by your system administrator for coming up with good passwords!

Using the correct terminology (e.g., command, option, option argument, and command argument), identify the constituent parts of the following Raspberry Pi OS single commands.

ls -la *.exe

lpr –Pwpr file27

chmod g+rwx *.*

View the man pages for each of the useful commands listed in Table A.1. Which part of the man pages is most descriptive for you? Which of the options shown on each of the man pages is the most useful for beginners? Explain.

How many users are logged on to your system at this time? What command did you use to discover this?

Determine the name of the operating system that your computer runs. What command did you use to discover this?

Give the command line for displaying manual pages for the socket, read, and connect system calls on your system.