Git Bash Commands - UNIX like (Wk 3 UCSD) Flashcards
What is the UNIX shell?
Interpreter between the user and the kernel?
What is an abbreviation for a unique identifier that identifies a process running from the shell?
PID
Refer to parent dir
../
how do you refer the user’s home directory
~ or ~username/
list files and folders in unix dir
ls (get help for all of the options)
show contents of text files
cat filename
get the documentation for a unix command
man commandName, eg man ls (git bash, this doesn’t work - need to use help commandName, and doesn’t have all)
what is standard input
stdin - usually keyboard, but can read from file
what is standard output
stdout - usually terminal, but can be switched to file
what is standard error
stderr - usually terminal
command to make a directory
mkdir dirName
list hidden files
ls -a
copy file fruits.txt from parent directory to current directory
cp ../fruits.txt .
.. is parent; . is current dir
mv a file (eg, don’t copy)
mv path/file targetDir
list all files with .txt extension in parent directory using wildcard
ls .. *.txt