0% found this document useful (0 votes)
329 views5 pages

Linux Lab 01 PDF

The document discusses setting up Ubuntu 18.04 in a VirtualBox virtual machine to learn Linux commands. It describes downloading VirtualBox and Ubuntu, creating a new Ubuntu virtual machine, and completing tasks that involve using basic Linux commands like ls, echo, rm, mv, cp, and editing/creating text files. The tasks are completed in the virtual machine and commands like date, whoami, hostname, and uptime are practiced. Files are created, copied, renamed and deleted while verifying the results with ls and cat commands.

Uploaded by

Obaid Ur Rehman
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
329 views5 pages

Linux Lab 01 PDF

The document discusses setting up Ubuntu 18.04 in a VirtualBox virtual machine to learn Linux commands. It describes downloading VirtualBox and Ubuntu, creating a new Ubuntu virtual machine, and completing tasks that involve using basic Linux commands like ls, echo, rm, mv, cp, and editing/creating text files. The tasks are completed in the virtual machine and commands like date, whoami, hostname, and uptime are practiced. Files are created, copied, renamed and deleted while verifying the results with ls and cat commands.

Uploaded by

Obaid Ur Rehman
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 5

1. What is Linux operating system.

2. What type of coding can we do in linux operating system.


3. Then downloading of virtual box .
4. Then downloading of ubunto 18.04 which is latest version system.
5. The setting up a new operating system in Virtual box.
6. Adding a new machine in vm box called ubunto.
7. After installing we do linux command coding task which were given by my
teacher.
8. These are the commands which I learn
 Ls, echo, username, shell promt, rm ,mv, cp, ctrl+d.

 WHAT IS LINUX OPERATIN SYSTEM


Linux is a Unix-like, open source and community-developed
operating system for computers, servers, mainframes, mobile devices
and embedded devices. It is supported on almost every major
computer platform including x86, ARM and SPARC, making it one of
the most widely supported operating systems.

 How is Linux operating system used?


Every version of the Linux operating system manages hardware
resources, launches and handles applications, and provides some form
of user interface. The enormous development community and wide
range of distributions means that a Linux version is available for
almost any task, and Linux has penetrated many areas of computing.

For example, Linux has emerged as a popular operating system for


web servers such as Apache, as well as for network operations,
scientific computing tasks that require huge compute clusters, running
databases, desktop/endpoint computing and running mobile devices
with OS versions like Android.
Tasks
Take a snapshot of Ubuntu installation:
Exercise:
Q1

a. Start another shell. Enter each of the following commands in turn.


i. date
ii. whoami
iii. hostname
iv. uname
v. uptime
Coding:

Q2

a. Use the ls command to see if you have any files.


b. Create a new file using the cat command as follows:
$ cat > hello.txt

Hello world! This is a text file.

c. Press Enter at the end of the last line, then Ctrl+D to denote the end of the file.
d. Use ls again to verify that the new file exists.
e. Display the contents of the file.
Coding:

Q3

a. Create a second file. Call it secret-of-the-universe, and put in whatever content you deem
appropriate.
b. Check its creation with ls.
c. Display the contents of this file. Minimize the typing needed to do this:
i. Scroll back through the command history to the command you used to create the file.
ii. Change that command to display secret-of-the-universe instead of creating it.
Coding:

Q4

After each of the following steps, use ls and cat to verify what has happened.

a. Copy secret-of-the-universe to a new file called answer.txt. Use Tab to avoid typing the existing
file’s name in full.
b. Now copy hello.txt to answer.txt. What’s happened now?
c. Delete the original file, hello.txt.
d. Rename answer.txt to message.
e. Try asking rm to delete a file called missing. What happens?
f. Try copying secret-of-the-universe again, but don’t specify a filename to which to copy. What
happens now?
Coding:

You might also like