Linux Assignment 8 Aug, 2017



i. What is an Operating System?

ii. Explain the basic architecture of Linux/Unix OS.


i. Explain the following commands:
a) who
b) date (with all options)
c) tty
d) uname

ii. Display the date in the following format:
25 January 2015 12 Hours 45 Minutes 5 Seconds

iii. Find out the days of Feb 2014 and save it in a file ‘Calender.lst‘.

iv. Write a command to display the users logged on.


i. Create a directory structure under your present working directory:

dept -- IT -- ITFile1.lst
           -- ITFile2.lst

     -- CS -- CSFile1.lst
           -- CSFile2.lst

ii. Rename ‘dept‘ to ‘BCA_dept‘.

iii. Copy the entire directory ‘BCA_dept‘ to ‘MCA_dept‘ in the same level.

iv. Remove the subdirectory IT from ‘MCA_dept‘.

v. Rename the file ‘ITFile1.lst‘ and ‘ITFile2.lst‘ to ‘SYFile‘ and ‘TYFile‘ respectively.

vi. Copy all the files in the CS directory from ‘BCA_dept‘, beginning with CS and ending with either 1 or 3 into another folder named ‘CS_backup‘ (Same level as that of ‘BCA_dept‘ and ‘MCA_dept‘).

Linux Resources: Important Links, etc.

This post contains various resources for Linux that will make studying it a little easier and help people who want to do more than just study about Linux.

Tiny CentOS VM:

This is a “VirtualBox Appliance”, which means it’s  packaged, ready-made, virtual machine. It contains a basic CentOS 7 installation that requires only a few gigabytes of space and 512 MB of RAM. Practicing on this is the recommended way to study Linux at home. To use it, you will need to download and install VirtualBox.

Username: user

Password: user

Note: You will need to enable AMD-v (if you have an AMD processor) or VT-x (if you have a Intel Chip) on your motherboard through the BIOS settings. See your laptop / motherboard’s manual or search Google for “How to enable virtualization on [laptop model]” for details on how to do this.

Learning Vim:

This is the best book to learn vim, the text editor that we will be using to edit config files and stuff. A lot of people in the industry still use this as their primary editor rather than Sublime Text or Atom or whatever.

If you have vim installed, you should also look at the program vimtutor that will probably be installed with vim. It should be noted that vim and vi and NOT the same. There are a lot of differences. vi will probably be pre-installed, but using vim is recommended.

Side Note: Before installing vim on a RedHat based distro (like CentOS or Fedora), run the following command:

sudo yum update vim-minimal (for CentOS) and sudo dnf update vim-minimal for Fedora.

Also, for the sake of fairness, there is a popular alternative to vim called emacs.

For advanced users:

Those who have already installed Linux and are familiar with it should look at installing Arch Linux. Simply going through the installation process will be a valuable learning experience.

Recommended Reading:

Those looking to learn Linux more deeply should take a look at the following resources:


Debian Handbook

Intro to Linux:

This post may be updated in the future.






Other books will be uploaded in the next few weeks.