03042014 Flashcards

0
Q

Perform:

cat /etc/issue

A

Hands-on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Print system information

A

uname, uname -a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Show / manipulate the IP routing table

A

route

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Tell how long the system has been running.

A

uptime

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Flush file system buffers

A

sync

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Read:

info coreutils ‘sync invocation’

A

Hands-on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

The line is stored in a buffer with full editing capabilities

A

history

Look for the command, type the exclamation point and then the number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

HISTSIZE environment variable

A

echo $HISTSIZE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The _____ key is used to invoke filename auto-completion

A

Tab

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Create a text file using redirection operand (just like touch command)

A

ls > file2.txt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Modifying the PS1 environment variable

A

echo $PS1
export PS1=”\u \h \w $”
#this is command line prompt
#PS1 : shows all the command line prompt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

The ____ command is used to display the contents of a variable

A

echo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Environment Variable:

A
USER: shows the current user
HOSTNAME:
HOME
SHELL
TERM
EDITOR
TZ
HISTSIZE
PATH : is where commands re searched for in the file system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly