Erin's CS stuff

CS stuff!

These should be typed into the terminal window in a Linux Development Environment

The examples provided utilize the "current working directory" but can be used with an "absolute path". https://www.redhat.com/sysadmin/linux-path-absolute-relative

Action Command Description Example
Change Directory cd change from your current directory into the one specified

cd ExampleFolder
move from the current directory into the one called ExampleFolder

cd ..
go back (or "up") to the previous  directory

List Directory Contents ls show all the files and directories in the specified directory

ls
show everything contained in the current directory

ls project4
show everything contained in the project4 directory (assuming it is in your current directory)

Remove (delete) rm

delete specified file or directory

use the -r flag to delete a directory and all of its contents

rm monkey.txt
delete monkey.txt from the current directory

rm -r banan
delete the banan folder and all of its contents

Create a file touch

create a file with the specified name

touch banan.c
create a file called banan.c in the current directory

Create a folder mkdir

create a folder (aka directory) with the specified name

mkdir monkey_directory
create a folder called monkey_directory in the current directory

Display file contents cat

display the contents of a file within the terminal window

cat scratch.txt
display the contents of a file called scratch.txt to the terminal window