Lab Exercise 1 Unix
Lab Exercise 1 Unix
This laboratory exercises covers topics 3 and 4 that will be tested on the first
practical test.
Enter these commands at the Linux prompt, and try to interpret the output:
a) who
identifies the user of the operating system
b) uname -a
identifies the operating system and its version of firmware the linux is operating
on
c) id
confirms the identity of the linux user
d) clear
erases displayed contents of the terminal page
e) history
displays recent inputs made by the linux user
f) sleep 5
delays an execution of a command with the integer , “5” being expressed
in seconds
g) uptime
shows how long the operating system has been open for since being
booted up
h) date
displays the current date and time according to the operating system
i) cd ../../..
changes the directory in regards to the command “cd”, “../../../” changes the
directory hierarchy up 3 levels
Task 2 – Linux Commands
$ mv userfile.txt backup
1) Upon doing an “ls-l” command you will see sequences of 10 characters that look
similar the ones below. Briefly explain what each of these sequences means.
a) –rw-rw-r- -
b) drwxr-x---
Create a new file called newfileperms in the practice directory. New files are created
with default permissions. What command(s) was/were used?
$ _____________________________
From your home directory list the contents of the practice directory to see the
permissions of newfileperms. What command(s) was/were used?
$ ________________________
What are the default permissions that were assigned to this file?
Permissions: