(F2-Formative) - Linux Installation, Environment Familiarization and File Creation Commands-1
(F2-Formative) - Linux Installation, Environment Familiarization and File Creation Commands-1
CPEOPSYSLA
(OPERATING SYSTEM - LAB)
EXERCISE
2
LINUX INSTALLATION/ENVIRONMENT FAMILIARIZATION AND FILE
CREATION COMMANDS
Section:
Professor: Sir Lyberius Ennio Taruc
CentOS
CentOS (/ˈsɛntɒs/, from Community Enterprise Operating System) is a Linux distribution that provides a free,
enterprise-class, community-supported computing platform functionally compatible with its upstream source, Red
Hat Enterprise Linux (RHEL). In January 2014, CentOS announced the official joining with Red Hat while staying
independent from RHEL, under a new CentOS governing board.
VirtualBox
Offering versatile virtualization, VirtualBox can create a virtual machine with virtually any operating system (except
those intended for ARM devices). It also offers software and hard assisted virtualization, storing virtual machines as
disk images. This makes them easy to backup or migrate to other PCs or VM applications.
Directory Commands
A. To display the contents of the current working directory
Syntax:
ls
B. To change directory
Syntax:
• cd . means the current directory
• cd .. means parent directory
• cd means will take you to your home directory
• cd – will take you to your previous directory
• cd ~ username will take you to the home directory of the user
C. To make directory/directories
Syntax:
mkdir [-option] directory1 directory2 …
Examples:
To create directories dir1, dir2, dir3, on the current directory:
Syntax:
mkdir dir1 dir2 dir3
mkdir my\ folder
D. To remove directory
Syntax:
rmdir [-option] directoryname
*This command allows removing EMPTY directories.
Examples:
To remove the directory dir1
Syntax:
rmdir dir1
A. Setup
1. Open your Virtual Machine in your respective terminal.
2. Double click CentOS 6.4 from your Public OVAs folder located on your Desktop.
3. Click IMPORT to load your CentOS
4. Double click CentOS 6 from your VirtualBox then wait until the OS is loaded to the VM.
5. Log-in as Student and the password is password
B. Exercises
Now you're ready to begin.
1. Explore the LINUX environment to determine the hardware requirements, bundled software applications,
graphical user interface (ease of use and look and feel of the environment) and security features
2. Explore the Windows 10 environment and determine as well the above-mentioned requirements
3. Use the table below in writing down your comparison between LINUX and Windows 10
Answers:
Linux Windows 10
Minimum Hardware Requirements
Linux Windows 10
Graphical User Interface
3. Create a directory at your current directory. (Use your surname1_surname2 as your directory name)
Paste your captured executed command and output below.
3. Move to the dirA directory. First, you need to exit from surname1_surname2 directory and go back to your home
directory. To do this, type the following:
$ cd ~ (There is a space between cd and ~)
Paste your captured executed command and output below.
D. Challenge
3. Create a file called myinfo using cat command in dirC. The file should contain 25 lines about yourself. Make the first line
as your full name. Number each line.
Paste your captured executed command and output below.
The goal of the task was to practice using different Linux tools to make folders,
move through them, and make files. The user learned how to use the'mkdir'
command to create directories, the 'cd' command to move between folders, and the
'cat' command to create and read files. The user also learned how to show files in a
location and make a file with personal information in it.
Conclusion:
The Linux programs are a useful tool for handling files and folders. They let users
make, move, and organize files quickly and easily. People who work with Linux
or other systems similar to Unix should learn how to use these tools well. The
activity showed some of the most basic Linux tools. With more practice and
exploration, users can learn how to use them well.