Ch. 5 Working with Commands Flashcards

1
Q

Indicate how a command name is interpreted

A

type

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

Display which executable program will be executed

A

which

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

get help for shell builtins

A

help

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

Display a command’s manual page

A

man

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

Display a list of appropriate commands

A

apropos

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

Display a command’s info entry

A

info

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

Display one-line manual page descriptions

A

whatis

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

Create an alias for a command

A

alias

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

What are the four different things a command can be?

A
  1. An executable program

2. A command built into the shell itself. 3. a shell function 4. An alias

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

Within this category, programs can be compiled binaries such as programs written in C and C++, or programs written in scripting languages such as the shell, Perl, Python, Ruby, and so on.

A

Executable Programs

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

Bass supports a number of commands internally. This category includes the cd command for an example.

A

Command built int the shell itself

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

Miniature shell scripts incorporated into the environment.

A

A shell function

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

Commands that we can define ourselves, built from other commands.

A

Alias

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

How would you display the command type for command? how would it describe it?

A

Type command

command is a shell builtin

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

How do you find the documentation available for shell built ins?

A

help command

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

What is the Alias command structure?

A

alias name=stirng

17
Q

how do you remove an alais?

A

unalias name

18
Q

What is the one tiny problem with defining aliases on the command line?

A

They vanish when our shell session ends.