Lab 1
Lab 1
This is called a shell prompt and it will appear whenever the shell is ready to accept input.
While it may vary in appearance somewhat depending on the distribution, it will usually
include your username@machinename, followed by the current working directory and a dollar
sign.
Helpful link to execute commands: https://cloud.google.com/shell
Commands to execute:
4. pwd - Print name of current working directory. When we first log in to our
system (or start a terminal emulator session) our current working directory
is set to our home directory. Each user account is given its own home
directory and it is the only place a regular user is allowed to write files.
5. cd - Change directory (E.g. cd /usr/bin)
6. ls - List directory contents (or ls ~ /usr, specifies multiple directories or ls
-l)
MANIPULATING FILES AND DIRECTORIES
7. cp – Copy files and directories