Question: QUESTION 1 What is the purpose of /dev/null ? a.This is a special directory used for source code development files b. This file is a

QUESTION 1

What is the purpose of /dev/null ?

a.This is a special directory used for source code development files

b.

This file is a system device called a bit bucket which accepts input and does nothing with it.

c.

This is a device file that maps to the zero key on the keyboard

d.

This is an empty file used as the filesystem template for new files

QUESTION 2

You prefer to always see hidden files when you type "ls". What would you type to create an alias so that when you type "ls", it behaves as if you had typed "ls -a" ?

a.

ls -a alias persist

b.

alias ls -a

c.

alias ls='-a'

d.

alias ls='ls -a'

QUESTION 3

You have a directory named "CIS003" that has some files in it. You want to delete the directory and all the contents. What command would you type?

a.

rm -r CIS003

b.

rmdir -all CIS003

c.

del -R CIS003/*

d.

rmdir CIS003

QUESTION 4

In most Unix command line interfaces, which key can you press to get to a previously typed command (command history)?

a.

Space Key

b.

ESC Key

c.

Shift + Enter

d.

Up Arrow

QUESTION 5

How do files get marked as a hidden file, so that they don't show up in a normal listing of the contents of a directory?

a.

The filename ends in .hid

b.

They are placed in a special directory

c.

The filename is all uppercase

d.

The filename starts with a period

QUESTION 6

Which command would produce output similar to what you see below?

 January 2015 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 
a.

systime

b

.date

c.

cal

d.

calendar

QUESTION 7

If your current working directory is /usr, which of the following commands would bring you to the /usr/bin directory? (there might be more than one right answer)

a.

cd ./bin

b.

cd ..

c.

cd /usr/bin

d.

cd bin

QUESTION 8

Which command is used to search the contents of a file for lines that contain a particular pattern?

a.

ls

b.

wc

c.

tee

d.

grep

QUESTION 9

Which of the following would list the contents of a directory in long format including hidden files, sorted by modification time with the most recent at the bottom? (you might want to try these to see which one works)

a.

list -s -t

b.

ls -lart

c.

ls -T

d.

ls -lt

QUESTION 10

You want to create a symbolic link named "docs" in your home directory that points to /usr/share/doc

What command would you type to create that symbolic link?

a.

ln -s /usr/share/doc/ docs

b.

lnk -s /usr/share/doc/ .

c.

ln /usr/share/doc/ -> docs

d.

ln -s docs /usr/share/doc/

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!