Prelim Lab: Getting Familiar with the Linux Shell Flashcards

1
Q

Shell Basics

The shell is the term used to refer to the command interpreter in Linux. Also known as Terminal, Command Line and Command Prompt, the shell is very powerful way to interact with a Linux computer.

  1. Log on to the Red Hat Linux VM as the Student User. The account student is used as the example user account throughout this lab.
  2. To access the command line, access the terminal
  3. Using the man pages, what is the command to display details of command mkdir
A

man mkdir

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

Shell Basics

The shell is the term used to refer to the command interpreter in Linux. Also known as Terminal, Command Line and Command Prompt, the shell is very powerful way to interact with a Linux computer.

On the mkdir man pages, what is the long option parameters of displaying output version

A

–version

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
Which command will you run to display the output below:
.
ㄴDesktop
ㄴDocuments
ㄴDownloads
      ㄴ1
      ㄴmyname
ㄴhello.txt
ㄴMusic
ㄴPictures
ㄴPublic
A

tree

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

Linux Shell Variables

Shell Variables − A shell variable is a special variable that is set by the shell and is required by the shell in order to function correctly

Given the shell variable below. What is the command use to create the myDog shell variable with a value of Summer

[user1@localhost ~]$ echo $mydog
Summer
[user1@localhost ~]$

A

correct answers:
myDog=”Summer”
myDog= “Summer”
myDog = “Summer”

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

Identify what path is this?

[user1@localhost Location]$ ../../Myplace/

A

relative path

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