linux commands Flashcards
what does the kernel on UNIX do?
it is the hub of the op system - ALLOCATES TIME + MEMORY TO PROGRAMS -
also handles filestore + comms in response to system calls
what does the shell do on UNIX do?
acts as interface between user + kernel
to list personal files and subdirectories
ls
ls doesnt always list everything, just those not prefixed with a dot (HIDDEN FILES). how do you make a list inclusive of these
ls -a
how to display username
whoami
how to make directory
mkdir dirname
how to change directory
dc dirname
how to stay in directory you are in
cd .
how to navigate to parent directory
cd ..
pathnames enable you to work out where you are in file system. how do you print this out?
pwd
home directories can also be referred to by tilde character - can be used to specify paths starting at home directory
ls ~/dirname
how to copy file
cp file1 file2
how to create a file
touch filename
how to create backup
rename filename.txt to filename.bak
how to move/rename file
mv file1 file2