Вы находитесь на странице: 1из 9

Submitted to:

Ms. Sukhpreet Kaur Gill


Assistant Professor
FCS, GNA University

manpreet kaur
Submitted by:
Student name: Ravinder kumar
Roll No: GU-2017-1174
Class: BCA 5th Semester
Question 1: Create the following directory structure IN
TERMINAL on Desktop and solve the following statements:

1. Copy the india directory to “bca” directory file.


2.Create a directory UT under India directory and copy
chandigarh and delhi files to UT directory.

3.Delete shimla file and JK directory.


4. Rename himachal to HP.

5.Write a command which shows all directories under india


directory.

India

JK Punjab Chandigarh Haryana Delhi Himachal

Amritsar Mohali Panipat Gurgaon Shimla Dharamshala


QUESTION 2: What is the output of following command?

date "+Date=%d-%m-%y %n Time %H:%M:%S"

In given command date command is used alongside some specific pattern in


Double quotes (” ”). And some other attributes are accepted by date command
for perform specific task. List out and explain all briefly.
Answer:-

Question 3: How to find Prime Factor of a number on Linux terminal.


Question 4: Create a file named test1 by typing this:
echo "This is a one-line file" > test1

Question 5: Briefly explain the following:


• LILO:- LILO( Linux Loader) is a boot loader,also called a boot manager, which is a
small program that facilittes a dual boot of a computer.
For use with the linux operating system. Most new computers are shipped with boot
loaders for some version of Microsoft windows o the Mac OS. If a computer is to be
used with linux , a special boot popular boot loaer among users who employ linux as
their main, or only, operating system. When a computer is powered-up or restarted
with LILO installed in the usual manner, the basic input/output system(BIOS) performs
some intial tests and then transfers control to the master boot record where LILO
resides. The primary advantage of LILO is the fact that it allows for fast boot up of linux
when installed in the MBR . there are several boot loaders other than LILO that can be
used to boot linux into a computer’s memory.

• GNU and KDE:- KDE is an international free software community producing an


integrated set of cross-platform applications designed to run on Linux.
GNOME is a desktop environment and graphical user interface that runs on top of a
computer operating system
KDE and GNOME are Linux desktop systems. KDE is an international project, which is
known provide a developed and distributed open source software for desktop and
portable computing; whereas GNOME is a part of free and open source GNU projects,
known to provide the similar windows desktop systems, applicable to work for Unix
systems. KDE (K Desktop Environment) was first bought into existence by Matthias
Ettrich, in 1996. It is an international free software community, which produces an
integrated set of cross-platform and its applications, designed especially to run on
Linux operating systems. Other operating systems on which the KDE environment is
made available are FreeBSD, Solaris, Microsoft Windows, and OS X systems.KDE is
known for its plasma Desktop environment, which provides a default working
environment for several Linux distributions, such as the open SUSE, Mageia and
kubuntu and is default desktop environment on PC-BSD a BSD operating system. The
basic aim of the KDE community is to facilitate the basic desktop functions and its
applications for the daily purposes. It also provides tools and documentations for
documentations for the programmers and developers to write stand-alone
applications for a system. KDE software is based on the Qt framework. The projects
of KDE work under the KDE technologies, and there are several such small and large
projects conducted under the KDE technology. There are several libraries and
services to run the KDE applications.

Question 6: How can you find out how much memory Linux is using?

Question 7: In Linux, what names are assigned to the different serial


ports?
Answer:-
/dev/tty.. are assigned to diff. serial ports.
• for “real hardware” serial ports that is /dev/ttySO and so on.
• for most USB-serial converters that is /dev/ttyUSBO and so on.
• for some virtual serial ports on USB it is /dev/ttyACMO and so on.

Question 8: What is the maximum length for a filename under Linux?


Answer:- 255bytes is the maximum length for a filename under linux. 4
billion(specified at filesystem creation time) is the maximum number of
files under linux. 16TiB is maximum filesize under linux.

Question 9: How do you insert comments in the command line prompt?


Answer:- This only way to insert comments is with the rem statement. You
can hide them from display during execution using the @-sign. So, in a batch
file:
@rem next statement will not be executed
Or
If %THIS% equ %THAT% call : DO_SOMETHING.

Question 10: Write a command for the following statements:


• that will display all .txt files, including its individual permission
• command to calculate the size of a folder.

Вам также может понравиться