06-Command Line Basics

Command Line Basics

  • commands, options and arguments
  • globbing
  • quoting
  • variables ( and the PATH variable)

 

ls

ls -l

cat

echo

a=Hello

a=”Hello There”

echo $a

 

b=”Good Buddy”

echo $a $b

–> Hello There Good Buddy

 

echo “$a$b”

–> Hello ThereGood Buddy

 

 

ls *.txt

ls file1.*

 

echo $PATH

/home/local/username/bin:/usr/lib/lightdm/lightdm:/usr/local/bin:/usr/bin:/bin:/home/local/username/bin

 

which is

/bin/ls

 

which echo

/bin/echo

 

ls; ls     run command twices

 

echo $a; echo $b

Hello there

good buddy

( 2 different line)

 

history