Mod 8 Day 4 Flashcards
What is the purpose of the Set command?
the Set command displays existing shell variables, environmental variables, and shell functions.
What is the purpose of the Export command?
Export is a bash built-in command that marks an environmental variable to be exported with any newly forked child processes.
What is an environmental variable?
an Environmental Variable are global variables, affecting the users’ total environment, and are often upper-case for quick identification.
What is the purpose of the Source command?
the Source command reads and executes the contents of a file that is passed as an argument in the current shell script.
What is the purpose of the Env command?
the Env command displays only existing environmental variables.
What shebang line represents the bash shell?
!/bin/bash
What is the shebang line to represent the Power Shell?
!/usr/bin/pwsh
What is a login shell?
A login shell requires system authentication, they are interactive shells, you get the system wide environment , and the users full environment.
What is an SSH suite?
an SSH suite is a suite of software that contains programs that create a secure, encrypted channel of communication for data exchange between networked devices.
What is SCP?
SCP securely copies files over the network
- r -recursively copy entire directories
- P -specifies what port to use as apposed to default port 22
default port of (22)
What is SFTP?
STFP is an ftp-like client used for file transfer over a network.
What is SSH?
SSH requires a successful login to the remote system, after which a shell opens to execute commands on that system.
what is an RSSH?
RSSH is a restricted secure shell, it can be configured to specifically restrict use to scp or sftp.
What is the purpose of the chsh command?
the chsh command allows the current user to change their current shell by entering the shell executable that they are wanting to change to
ex: chsh -s /bin/sh billy
What is a non-login shell?
A non-login shell is started by a program without requiring a new login.