Week 9 - CLI Linux
Week 9 - CLI Linux
Similar to windows.
Search Box ubuntu
• You can search for anything
related to programs,
systems or files in the
search box such as user
controls, terminl, documents,
etc
CLI
• It says: “linux-dosen@linuxdosen....”
• What does that text mean?
– 'linux-dosen' is the name of the user who accesses the CLI.
– The username is related to access rights too.
– ‘linuxdosen-To-be-filled-by-……‘ is the name of the installed linux
computer/server
NOTES:
Even though there is only 1 user in a Linux OS, it doesn't
mean that when you open the CLI, you can install it directly.
There needs to be a special syntax to make the user as the
main administrator (in this case called root)
Basic Command (CLI) on Ubuntu
Linux Windows Penjelasan
sudo su Right click on CMD and Set a user a 'super user do' or 'root' or 'superadministrator' of the
sudo bash run as administrator ubuntu OS
What do these
color differences
mean?
Apt-get install
Get CONCLUSION from these case!
1. The user wants to know the contents in the Desktop folder. Users use 'ls -l' to find out a comprehensive
description of the folder and files in it, including file permissions
2. Found a folder named 'test' which was created 12 April 2018 pk. 19.27 created by 'root' and updated by 'root'.
Have file permissions 'drwxr-xr-x'. What the code means can be seen in the explanation of file permissions
3. To change file permissions, the user uses the syntax 'chmod 777 test’
4. When to review uses 'ls -l' then the code changes to 'drwxrwxrwx'
‘ls -l’ and ‘chmod’
See examples.
desktop has the most different code. What do you think it means?
Folder and File Permission on Linux
Important ‘code’ that you need to know:
drwxrwxrwx
Divided to:
• Exit CLI
– Act1.1. Create 1 new document file inside the directory point no. 4
– Act1.2. Create 1 new document file inside the directory point no. 5
– Is there any difference in the results of 'Act1.1' and 'Act1.2'. Give your reasons.
Part 3 (15 minutes)
Instruction:
Should use CLI
Should documented every step screenshot.
1. Go to your Desktop directory.
2. You are logged in as a regular user (not as root)
3. Create 2 directories with the format “My_Document1” and “My_Document2” .
4. On My_Document1, set permission so that all access can do any action
5. On My_Documents2, set permissions so that only users can read, edit and execute. For the
group only view and edit. For others can't do anything
6. Show the result of customizing your permissions
• Exit CLI
– Act2.1. Create 1 new document file inside the directory point no. 4
– Act2.2. Create 1 new document file inside the directory point no. 5
– Is there any difference in the results of 'Act2.1' and 'Act2.2'. Give your reasons explanation.
Conclusion (15 minutes)
• Create a report document, consists all report about your activity from
activities Part 1 - 3
• Create a conclusion paragraph about what do you get from your
activities.