Linux Flashcards

1
Q

What shells are available in Linux?

A

C-shell, Bourne shell, Korn shell, and Bash shell. We use Bash shell.

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

What does ASCII stand for?

A

American Standard Code for Information Interchange

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

What are the create and append redirection characters?

A

> and&raquo_space;

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

How to define a path to a give username?

A

~username

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

What are the p i r copy options?

A

p == preserve time stamp
i == interactive confirmation
r == recursive

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

What are the a l F t h r R options for ls?

A
a == all
l = long format
h = human readable format
t = sort by time stamp
r = reverse order
F = display file type
R = recursive
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the n and l options for grep?

A

n == display line numbers

l == list only the filenames

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

How do you locate a command or list an alias?

A

which

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

What does the su command do?

A

Switch User

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

How do you remotely login to another system?

A

rlogin system or telnet system

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

How do you bring graphics from another system?

A

setenv DISPLAY local_machine_name:0.0

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

What are the three types of ownership?

A

User (u) Group (g) and Other (0)

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

What are that three types of permissions?

A

read (r) write (w) and execute (x)

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

What is the command to see disk usage, and common options?

A

du

  • h == with a unit
  • s == sum everything
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the command to see process status, and common options?

A

ps

  • e every process running
  • f full listing
  • u belonging to username
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you terminate background process?

A

kill -9 PID

17
Q

How do you repeat a history command?

A

!n

18
Q

What are three important dot files?

A

.bashrc == Linux environment file. Command search paths, aliases
.cdsenv == Cadence Design System environment file. Most initial default values on most forms on Cadence Opus.
.cdsinit == Cadence Opus, search paths. Bindkey files, stroke files, skill utilities, etc.

19
Q

How to start vi in read-only mode?

A

view or vi -R

20
Q

What is the basic mode of vi?

A

Command Mode (or Initial Mode)

21
Q

How to get to EX Command mode?

A

: or / or ?