Basic Command Line Tools Flashcards
What’s the command to open a terminal window?
term
First released in 1989, is commonly used as the default shell for Linux user accounts. This shell was developed by the GNU project as a replacement for the standard Unix operating system shell, called the Bourne shell (named for its creator). It is also available for Windows 10, macOS, and Solaris operating systems.
Bash (Bourne Again Shell)
This shell was initially released in 1983 but was proprietary software until
2000. It is a programming shell compatible
with the Bourne shell but supports advanced programming features, such as those available
in the C programming languages.
Korn Shell
What command can be used to print resolved symbolic links or canonical file names?
readlink
This shell was originally released in 2002. This smaller
shell does not allow command-line editing or command history, but it does provide faster shell program (also called a script) execution.
Dash (Debian Almquist Shell)
How can we know what’s the current system shell?
ls -la /bin/sh
or
readlink /bin/sh
How can we know what’s the current shell?
echo $SHELL
How can we get the bash version?
echo $BASH_VERSION
What command can we use to change directory and to get the current directory?
cd
pwd
How can we know the home directory for the current user?
echo $HOME
What command can be used to know the full path of a executable file?
which
The executable MUST be in the path environment variable.
What command can be used to know if a binary in built in or external?
type
The binary MUST be buit in or in the path environment variable.
What environment variable holds the computer name?
HOSTNAME
What environment variable holds the system language and encoding?
LANG
What environment variable holds the prompt definition and formatting?
PS1