Back to marketplace

Git Bash Commands - UNIX like (Wk 3 UCSD)

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

What is the UNIX shell?

Back (Answer)

Interpreter between the user and the kernel?

#2
Front (Question)

What is an abbreviation for a unique identifier that identifies a process running from the shell?

Back (Answer)

PID

#3
Front (Question)

Refer to parent dir

Back (Answer)

../

#4
Front (Question)

how do you refer the user’s home directory

Back (Answer)

~ or ~username/

#5
Front (Question)

list files and folders in unix dir

Back (Answer)

ls (get help for all of the options)

#6
Front (Question)

show contents of text files

Back (Answer)

cat filename

#7
Front (Question)

get the documentation for a unix command

Back (Answer)

man commandName, eg man ls (git bash, this doesn’t work - need to use help commandName, and doesn’t have all)

#8
Front (Question)

what is standard input

Back (Answer)

stdin - usually keyboard, but can read from file

#9
Front (Question)

what is standard output

Back (Answer)

stdout - usually terminal, but can be switched to file

#10
Front (Question)

what is standard error

Back (Answer)

stderr - usually terminal

#11
Front (Question)

command to make a directory

Back (Answer)

mkdir dirName

#12
Front (Question)

list hidden files

Back (Answer)

ls -a

#13
Front (Question)

copy file fruits.txt from parent directory to current directory

Back (Answer)

cp ../fruits.txt . .. is parent; . is current dir

#14
Front (Question)

mv a file (eg, don’t copy)

Back (Answer)

mv path/file targetDir

#15
Front (Question)

list all files with .txt extension in parent directory using wildcard

Back (Answer)

ls .. *.txt

#16
Front (Question)

how to redirect standard input to a file

Back (Answer)

command < filenamein

#17
Front (Question)

redirect standard output to a file

Back (Answer)

command > filenameout

#18
Front (Question)

redirect standard error to a file

Back (Answer)

command 2> errorout

#19
Front (Question)

redirect standard out and error in one command

Back (Answer)

command 2> errorout > fileout

#20
Front (Question)

how do you append to a file instead of redirecting

Back (Answer)

command»_space; fileout 2» fileerror

#21
Front (Question)

send standard error and stdout to same file

Back (Answer)

command > afile 2>&1

#22
Front (Question)

list out lines of text file screen by screen

Back (Answer)

less filename (q to exit reviewing line by line)

#23
Front (Question)

sort lines in fruits.txt and write to fruits2.txt

Back (Answer)

sort fruits.txt > fruits2.txt (sorts alphabetically)

#24
Front (Question)

get unique lines in a file and write to file2

Back (Answer)

uniq fruits.txt > file2