Linux Flashcards

1
Q

What are the different linux desktop managers?

A

KDE, GNOME, XFCE, UNITY

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

What is the key combination to get to the console of a linux computer?

A

Ctrl + Alt + F1

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

What is the difference between the terminal and console?

A

Terminal is a virtual window into the shell

Console directly communicates to the shell

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

What is the linux command to change your password?

A

passwd

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

What is the linux command to view current directory ?

A

ls

dir

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

What is the linux command to view current directory with detailed info?

A

ls -l

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

What is the linux command to view an alternate directory?

A

ls

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

What is the linux command to display the contents of a file?

A

cat

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

How do you assign variables in linux?

A

n=anything

calling variables:
$n

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

What is globbing in linux?

A

Shell interprets wildard characters * and ?
* - All wildward
? - Single character wildcard

ls file?.txt - Specifies 5 characters exactly
ls file*.txt - Specifies any length

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

What is the linux command to see where a command is stored?

A

which
whereis

i.e:
which ls
»>
/bin/ls

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

What is the stored variable $PATH and how do you view it?

A

It is a group of directories separated by colons, tells the shell where to look for specific commands

echo $PATH

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

How do you run separate commands on the same line?

A

;

i.e:
ls; lsmod

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

What is the linux command to view all commands previously typed?

A

history

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

What is the linux command to view documentation on a command?

A

man
info

man ls
info ls

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

What is apropos?

A

apropos or: man -k
command used to see what help documentation has specified text
i.e:
man -k arbitrary

17
Q

What is the linux command to view a brief desctription of what a command is?

A

whatis

whatis ls

18
Q

What is the linux command to view all directories and subdirectories?

A

ls -R

19
Q

What is the linux command to see the current working directory?

A

pwd

20
Q

What is the linux command to change directory to the user home directory?

A

cd ~
or
cd

21
Q

What is the linux command to change to the directory above?

A

cd ..

22
Q

What is the parameter to get help with a command?

A

–help

23
Q

What is the linux command to see all files including hidden?

A

ls -a

24
Q

What is /dev/sda?

A

Device location of bootloader hard disk
Letter following is the drive ordering
Number signifies the partition i.e /dev/sda1

25
Q

What is /dev/nvme0n1?

A

Device location of boot loader NVMe hard disk
Number following is the drive ordering
Partitions specified with p i.e /dev/nvme0n1p1

26
Q

What is the command to list all files with corresponding file types?

A

ls -p

27
Q

What is the command to list all files in order of file size?

A

ls -s

28
Q

What is the linux command to run the previous command?

A

!!

!! is a variable containing last issued command

29
Q

What is the linux command to permanently switch user on the terminal?

A

su

30
Q

What are the different package managers?

A

apt, yum, dnf, pkg