Linux Flashcards
What are the different linux desktop managers?
KDE, GNOME, XFCE, UNITY
What is the key combination to get to the console of a linux computer?
Ctrl + Alt + F1
What is the difference between the terminal and console?
Terminal is a virtual window into the shell
Console directly communicates to the shell
What is the linux command to change your password?
passwd
What is the linux command to view current directory ?
ls
dir
What is the linux command to view current directory with detailed info?
ls -l
What is the linux command to view an alternate directory?
ls
What is the linux command to display the contents of a file?
cat
How do you assign variables in linux?
n=anything
calling variables:
$n
What is globbing in linux?
Shell interprets wildard characters * and ?
* - All wildward
? - Single character wildcard
ls file?.txt - Specifies 5 characters exactly
ls file*.txt - Specifies any length
What is the linux command to see where a command is stored?
which
whereis
i.e:
which ls
»>
/bin/ls
What is the stored variable $PATH and how do you view it?
It is a group of directories separated by colons, tells the shell where to look for specific commands
echo $PATH
How do you run separate commands on the same line?
;
i.e:
ls; lsmod
What is the linux command to view all commands previously typed?
history
What is the linux command to view documentation on a command?
man
info
man ls
info ls