Bascis Flashcards
Command Line Basics
most popular Linux shell
bash
Command Line Basics
output text on the terminal
echo
Command Line Basics
list contents of directory
ls
Command Line Basics
show specific command is executed
type
Command Line Basics
Create an empty file or update an existing file’s modification date.
touch
Command Line Basics
Bash Shell
Bourne-again shell
Command Line Basics
ssh or tcsh - enhanced csh
C shell
Command Line Basics
ksh
Korn shell
Command Line Basics
zsh
Zshell
Command Line Basics
name of user running shell
username
Command Line Basics
name of the host on which shell runs
hostname
Command Line Basics
directory that shell is currently in
current_directory
Command Line Basics
this symbol ~
home directory
Command Line Basics
shell_type indicates run by regular user
$
Command Line Basics
shell_type indicates run by root user
#
Command Line Basics
command breakdown
ls -l /etc
cmd: ls
option: -l
argument: /etc
Command Line Basics
command breakdown
ls -l -a
cmd: ls
option: -l -a
argument:
Command Line Basics
command breakdown
cd /home/usr
cmd: cmd
option:
argument: /home/user
Command Line Basics
find information about Shell builtin
cd
Command Line Basics
find information about External command
cat
Command Line Basics
find information about Shell builtin
exit
Command Line Basics
command result
touch “$USER”
mike
Command Line Basics
command result
touch “touch”
empty file named touch
Command Line Basics
command used to express a range of numbers
ls
game1 game2 game3 game4 game5
touch game{1..5}
Command Line Basics
command used to remove a range of numbers
ls
game1 game2 game3 game4 game5
use ?
rm game?
Command Line Basics
by what facility can you make commands interract with eachother
Use the |
piping command