Posts

Showing posts from March, 2021

Lab 1 INTRO TO LINUX

Image
                                                                      Lab2 -> Windows : Microsoft Windows is a graphical operating system developed and published by Microsoft. It provide a way to store files, run softwares, play games, watch videos, and connect to the internet. Windows is the most common in operating system and user-friendly with interacting icons. MacOS : MacOS is the operating system developed by Apple Inc. The MacOS contains graphical user interface GUI system and used in apple products. MacOS feature in security and expensive in product. Linux : Linux is a open source operating system created by Unix. Linux is software that sits underneath all of the other software on a computer, receiving requests from programs and relaying request to the computer's hardwa...

Lab 4 ZIP FILE AND CHANGE DIRECTORY

Image
  <- Lab3                                              Mini Project -> PART 1.  In this session we are going to learn about command line grep. Grep is an acronym that stands for Global Regular Expression Print which used to search for a string of characters in a specified file. For example to use grep :     1) First change directory to /tmp. Then we used dmesg to create a text file inside it.      2) Then we use grep to use text file in terminal command. To show more info, we can add a -i before network.           - "-i" means display ignoring case so it is more information displayed.      3) Same goes for cdrom, we can also use "grep -i cdrom dmesg.txt" to returns code based on search.     *Since my laptop do not have CD ROM, here's a sample output from ...

Lab 3 CREATE .TXT FILES WITH TERMINAL

Image
  <- Lab2                                                                Lab4 -> 1. To view .bashrc file, we can use command line "cat .bashrc"          output :  - The # symbol is used to comment in the terminal. - The "export" command is used to create a variable in environment variable. -  The "alias" command is used to assign a long command line to a variable. - The control statements are allowed in the terminal. Example like "if". - If user wish to modify the .bashrc file , command line ". .bashrc" must used. 2. When we call out a file with blanks and special characters, we will get error like this : * This show me trying to call out file 'blank file.txt', it prompt out no such file or directory. space file.txt -To solve this error, we add "" to the ...