Linux Exam 1

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

Which option of rm command is used to remove a directory with all its subdirectories

-r

Which command searches the string in file opened in vi editor?

/ or ?

How to execute ls command inside a vi editor?

:!ls

Syntax of any Unix command is

A

The contents of root filesystem is responsible to

A

The file permission 764 means

Every one can read, group including owner can write, owner alone can execute

Which is the core of the operating system?

Kernal

If a file is removed in Unix using 'rm' then

The File cannot be recovered by a user

Which of the following statement is true?

The mv command will preserve the meta data of the file

To feed standard output of one command to standard input of another in a single shell session

The pipe operator provided by the shell can be used

The loin shell is

The shell program that runs when the user logs in

There are two hard links to the "file1" say hl and h2 and a softlink sl. What happens if we deleted the "file1"?

We will still be able to access the file with hl and h2 but not with sl

When you use the ln command, which of the following occurs?

a file is created that points to an existing file

What is job number?

a unique number, assigned to each job in shell

Superuser can change the _______ permissions of any file.

all of the mentioned

Unix is which kind of Operating System?

all of the mentioned

In vi editor, which command reads the content of another file?

c

Which command changes a file's group owner

chgrp?

Which command is used to change permissions of files and directories?

chmod

Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?

chmod 640 textfile

Which command is used to assign read-write permission to the owner?

chmod u=rw file

What command would send the output of cmd1 to the input of cmd2?

cmd1 | cmd2

The shell is?

command interpreter

What command is used to copy files and directories?

cp

Which of these is the correct method for appending "foo" in /tmp/bar file?

echo foo >> /tmp/bar

Operating system kernel must be located in

either / or in /boot

Which command brings a background job into the foreground?

fg

hidden file are

file that begin with a "."

Creation of hardlinks that point across partitions

is not allowed

Which command allows to view the current jobs being handled by the shell?

jobs

Which of these commands could you use to show one page of output at a time?

less

What is the output of the following command for bash shell:

linux bash

Which of the following command output contains userid?

ls -l

How do you get help about the command "cp"?

man cp

In vi editor, the key combination CTRL+f

moves the screen down one page

How do you rename file "new" to file "old"?

mv new old

Which command is used to print a file

none of the mentioned?

Which of the following command can be used to change the user password?

passwd

pwd command displays

present working directory

Which command is used to record a user login session in a file

script

Ctrl-Z key combination

stops the process in the shell

What communication command provides communication to another user logged on by writing to the bottom of their terminal?

talk

A user does a chmod operation on a file. Which of the following is true?

the last change time of the file is updated

Which command creates an empty file if file does not exist?

touch

Which command is used to delete the character before the cursor location in vi editor?

uppercase X

Which one of the following statement is not true?

vi editor commands are not case sensitive

Which vi editor command copies the current line of the file?

yy

* specifies

zero or more characters

Which represents the user home directory

~


Ensembles d'études connexes

Week 4 - Diabetes and Cellulitis

View Set

Chapter 38: Caring for Clients with Cerebrovascular Disorders

View Set

Chapter 8 Competitive Firm Microeconomics

View Set

10/29/17, Story: Zuzu the Giraffe

View Set