https://github.com/syaifulahdan/os­practice|Operating System Practice |1 to 39  OPERATING SYSTEMS PRACTICE Basic Commands Linux Operating System Practice : 1  Instruction Format on Linux Operating System  Basic Commands on Linux Operating System https://github.com/syaifulahdan/os­practice|
https://github.com/syaifulahdan/os­practice|Operating System Practice |2 to 39  A. Objectives 1. Use basic commands for user information 2. Getting to know the format of the instructions on the Linux OS 3. Using basic instructions on Linux OS 4. Learn basic utilities on Linux OS
https://github.com/syaifulahdan/os­practice|Operating System Practice |3 to 39  B. Basic Theory
https://github.com/syaifulahdan/os­practice|Operating System Practice |4 to 39   Every LINUX user must have a login name (user account) that must be registered to the system administrator.  The login name is limited to a maximum of 8 characters and is generally in lower case  Prompt of bash shell on Linux using the sign "$".  A Linux session consists of:  Login  Working with Shell / running applications  Logout
https://github.com/syaifulahdan/os­practice|Operating System Practice |5 to 39  Linux Instruction Format • $ Instruction Name [option] [argument] • option begins with the sign – (minus). • Arguments can be empty, one or more arguments (parameters). • Example: $ ls : No arguments
https://github.com/syaifulahdan/os­practice|Operating System Practice |6 to 39  • • • • • •  • • • $ ls : No arguments $ ls ­a  : The option is –a = all, no arguments $ ls /bin : no option , argument is /bin $ ls /bin/etc/usr : no option , argument is /bin/etc/user $ ls ­l /usr1 : 1 option and 1 argument L = long list $ ls ­l ­a  /bin/etc : 2 option and 2 argument L = long list, a (all user) https://github.com/syaifulahdan/os­practice|
https://github.com/syaifulahdan/os­practice|Operating System Practice |7 to 39  Manual  Linux provides manual on-line.  Some keyboard keys are important in the use of the manual is 7 Q : To exit the man program <Enter> : Down, line by line <Spasi> : Down, per page b : Back to the top, 1 page / : search text (string) n : Continuing the previous string search
https://github.com/syaifulahdan/os­practice|Operating System Practice |8 to 39  Manual is divided into several Section 1 : User commands 2 : System calls 3 : Library calls 4 : Devices 5 : File formats 6 : Games 7 : Miscellaneous 8 : System commands 19 : Kernel internals N : Tcl/Tk command
https://github.com/syaifulahdan/os­practice|Operating System Practice |9 to 39  C. Step by Step
https://github.com/syaifulahdan/os­practice|Operating System Practice |10 to 39  1. Turn on the computer 2. Sign in to the Linux operating system. 3. Wait until there is a login command to fill in the user name and password. username : username password : ***********
https://github.com/syaifulahdan/os­practice|Operating System Practice |11 to 39  4. To exit the system use the command logout or exit 5. Use the command for user information: 6. Use basic commands : March 3, 2010 date, cal, man, clear, apropos, whatis id, hostname, uname, w, who, whoami, chfn, finger
https://github.com/syaifulahdan/os­practice|Operating System Practice |12 to 39   Use basic commands for file manipulation: Praktikum Sistem OperasiMarch 3, 2010 12  ls  File  Cat  More  Pg  Cp  Mv  Rm  grep
https://github.com/syaifulahdan/os­practice|Operating System Practice |13 to 39  D. Experiment
https://github.com/syaifulahdan/os­practice|Operating System Practice |14 to 39   Experiment 1 : See identification (id and group id number)  Replace the prompt with "$" [syaiful@tekno]$ id [syaiful@tekno]$ PS1=”$”
https://github.com/syaifulahdan/os­practice|Operating System Practice |15 to 39   Experiment 2: View the date and calendar system  View the current date  View the calendar $ date $ cal 10 2018 $ cal -y
https://github.com/syaifulahdan/os­practice|Operating System Practice |16 to 39   Experiment 3 : See the machine identity  Experiment 4 : See who's active  Knowing who is active Praktikum Sistem OperasiMarch 3, 2010 16 $ hostname1 $ uname $ uname -a $ w $ who $ whoami
https://github.com/syaifulahdan/os­practice|Operating System Practice |17 to 39   Changing finger information $ chfn orange-server Full Name : Room Number : Work Number : Work phone : Finger information changed.
https://github.com/syaifulahdan/os­practice|Operating System Practice |18 to 39   View finger information  Experiment 5 : Using manual $ finger $ finger [username] $ man ls $ man man $ man -k file $ man 5 passwd
https://github.com/syaifulahdan/os­practice|Operating System Practice |19 to 39   Experiment 6 : Clears the screen  Experiment 7 : Search for commands whose descriptions contain the keywords searched for. 19 $ clear $ apropos date $ apropos mail $ apropos telnet
https://github.com/syaifulahdan/os­practice|Operating System Practice |20 to 39   Experiment 8 : Finding the exact command is the same as the key you are looking for.  Experiment 9 : File and directory manipulation  Displays current working directory 20 $ whatis date $ ls
https://github.com/syaifulahdan/os­practice|Operating System Practice |21 to 39   View all files and attributes  displays all files per column  Displays all files or directories without any sorting process $ ls -l $ ls -a $ ls -f
https://github.com/syaifulahdan/os­practice|Operating System Practice |22 to 39   Displays the contents of a directory  Display the contents of the root directory  Displays all files or directories by marking $ ls /usr $ ls /
https://github.com/syaifulahdan/os­practice|Operating System Practice |23 to 39   Displays all files or directories by marking / : for directories * : for files that are executable, @ : for the symbolic link file = : for the socket % : Without | : for FIFO $ ls -F /etc
https://github.com/syaifulahdan/os­practice|Operating System Practice |24 to 39   Displays a complete file or directory that consists of the file name, size, modified date, owner, group and mode or its attributes.  Displays all files and directory contents. This argument will cause the process to run longer, if the process will be stopped can use ^ c $ ls -R /usr $ ls -l /etc
https://github.com/syaifulahdan/os­practice|Operating System Practice |25 to 39   Experiment 10 : View the file type  Experiment 11 : Copying files  Copying a file. Give the -i option for interactive questions when the file already exists. 25 $ file $ file * $ file /bin/ls $ cp -i [sourcefile] [filecopy]
https://github.com/syaifulahdan/os­practice|Operating System Practice |26 to 39 26 $ cp /etc/group f1 $ ls -l $ cp -i f1 f2 $ cp -i f1 f2
https://github.com/syaifulahdan/os­practice|Operating System Practice |27 to 39   Copy to directory. 27 $ mkdir backup $ cp f1 f2 $ cp f1 f2 f3 backup $ ls backup $ cd backup $ ls
https://github.com/syaifulahdan/os­practice|Operating System Practice |28 to 39   Experiment 12 : View the contents of the file  Using paint instructions  Displays files per one full screen 28 $ cat f1 $ more f1 $ pg f1
https://github.com/syaifulahdan/os­practice|Operating System Practice |29 to 39   Experiment 13 : Rename the file  Using mv instruction  Displays Moving files to another directory. per one full screen. If the last argument is the name of the directory, the files will be moved to that directory. 29 $ mv f1 prog.txt $ ls
https://github.com/syaifulahdan/os­practice|Operating System Practice |30 to 39   Displays Moving files to another directory. per one full screen. If the last argument is the name of the directory, the files will be moved to that directory. 30 $ mkdir mydir $ mv f1 f2 f3 mydir
https://github.com/syaifulahdan/os­practice|Operating System Practice |31 to 39   Experiment 14 : Deleting files 31 $ rm f1 $ cp mydir /f1 f1 $ cp mydir /f2 f2 $ rm f1 $ rm -i f2
https://github.com/syaifulahdan/os­practice|Operating System Practice |32 to 39   Experiment 15 : Search for words or phrases in a file. $ grep root /etc/passwd $ grep “:0:” /etc/passwd $ grep student /etc/passwd
https://github.com/syaifulahdan/os­practice|Operating System Practice |33 to 39  E. Exercise
https://github.com/syaifulahdan/os­practice|Operating System Practice |34 to 39   Exercise : Practice 1 1 Change the finger information on your computer. 2 Look at the active users on your computer. 3 What commands are used to view a full year's calendar. 4 How can you see the manual of the cal command. 5 How to view ls manual commands with sort keywords. 6 What is the display for the ls ­a ­l and ls ­al commands. 7 Show all files including hidden files in the /etc directory.
https://github.com/syaifulahdan/os­practice|Operating System Practice |35 to 39  8 Show all complete files in the /etc directory. 9 Make directory exercise1 in active directory, then copy /etc/group file to tes1, tes2 and tes3 file in this directory. 10 Display the contents of the test1 file per one full screen. 11 Move the test1 and tes2 files to the home directory. 12 Delete tes1 and tes2 files with confirmation.
https://github.com/syaifulahdan/os­practice|Operating System Practice |36 to 39   Practice Report : Practice 1 1.Summarize Experiments 1 through experiment 15 in table form as below: Command Description Format id date cal hostname uname w whoami chfn
https://github.com/syaifulahdan/os­practice|Operating System Practice |37 to 39  appropos ls ­l ls ­a ls ­f ls ­F /etc cp ­i mv mkdir rm grep
https://github.com/syaifulahdan/os­practice|Operating System Practice |38 to 39  2. Analyze the exercises that have been done. 2. Give a conclusion from this lab.
https://github.com/syaifulahdan/os­practice|Operating System Practice |39 to 39 

Operating System Practice : Meeting 2-basic commands linux operating system-slide