UNIX Shells Review

0.0(0)
studied byStudied by 0 people
0.0(0)
linked notesView linked note
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

flashcard set

Earn XP

Description and Tags

A set of flashcards to help review key concepts and details related to UNIX Shells.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

1
New cards

What is the shell in UNIX?

The shell is an interface between the user and the system that runs other UNIX commands.

2
New cards

What command checks which shell you are using?

You can check your current shell by using the command 'printenv SHELL' or 'echo $SHELL'.

3
New cards

What does the environment variable PS1 control?

PS1 determines the appearance of your command prompt.

4
New cards

What happens if you "unset PS1"?

You will have no prompt, which is confusing.

5
New cards

What file stores the bash history?

The bash history is stored in a hidden file called .bash_history in your HOME directory.

6
New cards

How can you repeat the last command in bash?

You can use the shortcut '!!' to repeat the last command.

7
New cards

What does '!*' do in bash history?

'!*' allows you to run a different command with the same arguments, excluding the first word.

8
New cards

How do you create an alias in UNIX?

You can create an alias using the command 'alias NAME="COMMAND"'.

9
New cards

What is the purpose of aliases in UNIX?

Aliases are used to create another name for a command, often including specific flags.

10
New cards

What is the difference between .profile and .bashrc?

.profile and .login are read once at login, while .bashrc is run every time a new shell is created.

11
New cards

What command is used to view your command history?

The command 'history [NUMBER]' shows your most recent commands.

12
New cards

What feature of different shells can make them appealing?

Different shells have features that vary, making them appealing based on user needs.