2- Command Line Interface Flashcards

1
Q

Sources of commands:

A

Internal Commands
External Commands
Aliases
Functions

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

Also called built-in commands and are built in to the shell itself

Internal Commands
External Commands
Aliases
Functions

A

Internal Commands

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

These commands are stored in files that are searched by the shell

Internal Commands
External Commands
Aliases
Functions

A

External Commands

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

These commands can also be executed by typing the complete path to the command.

Internal Commands
External Commands
Aliases
Functions

A

External Command

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

cd is a type of _______ command

Internal Commands
External Commands
Aliases
Functions

A

Internal Commands

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

can override a built-in command, function, or a command that is found in a file

Internal Commands
External Commands
Aliases
Functions

A

Aliases

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

can also be built using existing commands to either create new commands, override commands built-in to the shell, or commands stored in files.

Internal Commands
External Commands
Aliases
Functions

A

Functions

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

_____ and _______ are normally loaded from the initialization files when the shell first starts.

Internal Commands
External Commands
Aliases
Functions

A

Aliases

Functions

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

A software program that when executed on the command line, performs an action on the computer

A

command

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

The default shell for users in Red Hat Enterprise Linux and CentOS is the GNU ________

A

Bourne- Again Shell (bash)

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

is an improved version of one of the most successful shells used on UNIX-like systems

A

Bash

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

The Linux __________ is the text interface to your computer. Also known as shell, terminal, console, command prompts and many others is a computers program intended to interpret commands

A

command line

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

can be used to map longer commands to shorter key sequences

Internal Commands
External Commands
Aliases
Functions

A

Aliases

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

When the shell sees _______ being executed, it substitutes the longer sequence before proceeding to interpret commands.

Internal Commands
External Commands
Aliases
Functions

A

Aliases

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

Can be used to specify something for the command to act upon.

A

Arguments

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

Following a command, any desired _______ are allowed or are required depending on the command

A

arguments

17
Q

the _______ command displayed system information. This command will output linux by default when it is executed without any options

pwd
man
uname

A

uname

18
Q

______ will print all information

  • a or –all
  • s or –kernel-name
  • n or –node-name
  • r or –kernel-release
  • v or –kernel-version
  • m or –machine
  • p or –processor
  • i or –hardware-platform
  • o or –operating-system
  • -help
  • -version
A

-a or –all

19
Q

______ will print kernel name

  • a or –all
  • s or –kernel-name
  • n or –node-name
  • r or –kernel-release
  • v or –kernel-version
  • m or –machine
  • p or –processor
  • i or –hardware-platform
  • o or –operating-system
  • -help
  • -version
A

-s or –kernel-name

20
Q

______ will print network node name

  • a or –all
  • s or –kernel-name
  • n or –node-name
  • r or –kernel-release
  • v or –kernel-version
  • m or –machine
  • p or –processor
  • i or –hardware-platform
  • o or –operating-system
  • -help
  • -version
A

-n or –node-name

21
Q

______ will print kernel release

  • a or –all
  • s or –kernel-name
  • n or –node-name
  • r or –kernel-release
  • v or –kernel-version
  • m or –machine
  • p or –processor
  • i or –hardware-platform
  • o or –operating-system
  • -help
  • -version
A

-r or –kernel-release

22
Q

______ will print kernel verison

  • a or –all
  • s or –kernel-name
  • n or –node-name
  • r or –kernel-release
  • v or –kernel-version
  • m or –machine
  • p or –processor
  • i or –hardware-platform
  • o or –operating-system
  • -help
  • -version
A

-v or –kernel-version

23
Q

______ will print machine hardware name

  • a or –all
  • s or –kernel-name
  • n or –node-name
  • r or –kernel-release
  • v or –kernel-version
  • m or –machine
  • p or –processor
  • i or –hardware-platform
  • o or –operating-system
  • -help
  • -version
A

-m or –machine

24
Q

______ will print processor type or unknown

  • a or –all
  • s or –kernel-name
  • n or –node-name
  • r or –kernel-release
  • v or –kernel-version
  • m or –machine
  • p or –processor
  • i or –hardware-platform
  • o or –operating-system
  • -help
  • -version
A

-p or –processor

25
Q

______ will print hardware platform or unknown

  • a or –all
  • s or –kernel-name
  • n or –node-name
  • r or –kernel-release
  • v or –kernel-version
  • m or –machine
  • p or –processor
  • i or –hardware-platform
  • o or –operating-system
  • -help
  • -version
A

-i or –hardware-platform

26
Q

______ will print operating system

  • a or –all
  • s or –kernel-name
  • n or –node-name
  • r or –kernel-release
  • v or –kernel-version
  • m or –machine
  • p or –processor
  • i or –hardware-platform
  • o or –operating-system
  • -help
  • -version
A

-o or –operating-system

27
Q

______ will print help information

  • a or –all
  • s or –kernel-name
  • n or –node-name
  • r or –kernel-release
  • v or –kernel-version
  • m or –machine
  • p or –processor
  • i or –hardware-platform
  • o or –operating-system
  • -help
  • -version
A

–help

28
Q

______ will print version information

  • a or –all
  • s or –kernel-name
  • n or –node-name
  • r or –kernel-release
  • v or –kernel-version
  • m or –machine
  • p or –processor
  • i or –hardware-platform
  • o or –operating-system
  • -help
  • -version
A

–version

29
Q

pwd means?

A

print working directory

30
Q

it prints the path of the working directory, starting from the root.

pwd
man
uname

A

pwd

31
Q

a useful tool of the bash shell is the ability to complete commands and their arguments automatically

A

command completion

type a few characters of a command and then press tab key

32
Q

used to display the user manual of any command that we can run on the terminal.

pwd
man
uname

A

man