You are on page 1of 3

1. Create two directories on desktop….?

Ans :

2. Add a user uol2 and the default directory of this


user should be /home/admin.?
Ans :
3. Create a file named file5.txt and enter……?

4. What are the steps to execute a c++ program in


Fedora?
1. Open up the terminal and install vim by entering the following commands. 

dnf -y update
dnf -y install vim-enhanced

2. Install necessary development tools (if not installed already). This includes the compiler.

dnf group install 'Development Tools'

3. Create a new C/C++ program with this vim command. 

for C program

vi example.c

for C++ program


vi example.cpp

5. Write a program to print “Hello World” in Fedora?

-------------------------------END---------------------------

You might also like