Linux+ Shell Basics
shell type: tcsh
An improved version of csh. It offers command line editing and completion features that are not available with csh.
su
Switch users in the shell prompt
shell type: sh
The Bourne shell is an earlier version of bash, and is similar in many ways. Originally Bourne.
shell type: bash
The Bourne-agin shell is the default shell used by most Linux distributions. It uses commands similar to a UNIX shell.
shell type: csh
The C-shell uses synatx similar to the syntax used in the C programming language.
shell type: ksh
The Korn shell provides scripting features not found in bash. Developed by David Korn.
shell type: zsh
The Z Shell is an improved version of bash and is available on many Linux distributions.
history
What command should you enter to see a list of all the commands you recently used at the command prompt?
All system information is displayed on the screen.
What is the result of the uname -a command?
pwd
What would you enter at the command prompt to display the present working directory?
bash
What would you enter at the command prompt to start a new Bourne-again shell (bash) session?
Bourne-again shell (bash)
Which of the following options is the standard shell for most Linux computers?
./ni /root/ni
You have an executable file named ni that allows you to save a snapshot of your network information with the date and time into a log file. The file is in the /root directory, and /root is the current working directory. How would you run the executable file?
exec ./myapp
You have the my app executable file. It is found in the current working directory, but not in the command path. What should you type at the command prompt to start the my app file and replace the shell with the my app process
cd
change directions
chsh
change the default shell
red
compressed
blue
directories
whoami
display the current username
To add a directory to a path
enter PATH=$PATH:[directory_path]; them enter export PATH
clear
erase the shell screen
green
executable files
exec
execute an executable and to replace the shell process with new process created by the executable file
command path
is a set of directories to be searched to find the executable files of the commands entered at the shell prompt
Linux
is an operating system. It's not an application that runs on top of Windows or some other operating system.
Linux shell
is the Command Line Interface (CLI) or Text User Interface (TUI) that administrators use to control a Linux operating system.
exit
leave out the login shell or to go back to the original user after using the su command
cyan
links
tilde symbol (~)
points to the home directory of the current user
uname
print system information. Be aware of the following uname options: -a prints all systems info. -o prints the operating system. -p prints the processor's architecture type.
Is
show names of the files and directories in the current directory
white
text files
enter echo $PATH
to see the path