Linux Model
Linux Model
Answer all the questions 16. Write short notes history of Linux and Unix.
17. Briefly explain about Standard Input and Output Redirection.
1. In the shell, by default, all variables are considered and stored as
a) string b) integer c) character d) float 18. Define Text Processing and name some commands.
2. Which command reads user input from the terminal and assign this
19. How word count is used in Linux justify with example.
value to a variable name?
a) read b) get c) declare d) set 20. Short notes on Automatic Decision Making in Linux.
3. To redefine a variable, it can be removed from the list of variables by
using the command
a) unset b) delete c) remove d) clear SECTION - C [5 x 10 = 50 MARKS]
4. Which command sets up shorthand for command or command line?
a) set b) alias c) new d) echo Answer all the questions
5. Which command prints the directory stack?
a) cd b) dirs. c) popd d) pushd 21. a) Define Operating System and their types.
6. Which command concatenate the specified argument into a single [or]
command, then execute the command? b) Discuss about the functions of VI editors with examples.
a) fc b) eval c) exec d) getopts
7. syntax to suppress the display of command error to monitor? 22. a) What is mean by a Shell and make a Comparison between the shells.
a) command > &2 b) command 2> &1 [or]
c) command 2> &2 d) command 2> /dev/null b) Name some the commands used in listing and displaying the files.
8. Which command is used to set terminal IO characteristic?
a) tty b) ctty c) ptty d) sty 23. a) Explain briefly about grep commands in Linux with examples.
9. Which command is used to record a user login session in a file [or]
a) macro b) read c) script d) none of the mentioned b) Write a sample program to work with arrays in Linux.
10. Which command is used to display the unix version
a) uname -r b) uname -n c) uname -t d) kernel 24. a) How will the user interact with shell scripting explain in detail.
11. Which option of ls command used to view file inode number [or]
a) –l b) -o c) –a d) –i b) State the importance Files and debugging in Linux.
12. Which of the following is the first UNIX editor?
a) vi b) emacs c) ex d) ed 25. a) Describe about the Automatic Decision in Linux?
13. Which editor is used by the Unix system to edit files? [or]
a) word b) notepad++ c) vi d) notepad b) Explain Working with Functions in Linux with suitable example.