vi Editor
I Love Lists
Move, Copy, Delete
Show Me the Data
Files & Directories & Final Jeopardy
100

This vi mode allows you to edit the text in your selected file

Input Mode

100

This command lists all the files and directories that are direct descendants of our current directory

ls

100

This command allows us to move a file to a new location

mv 

100

This command displays an online manual of all linux commands

man

100

This command allows us to create 3 new files in our current directory

touch file1 file2 file3

200

When in input mode, this command opens a new line above our current position

O

200

This command lists all the files and directories including any hidden files

ls -a

200

This command allows us to copy files or directories

cp

200

This command will give info about the contents of a file

file filename

200

This command allows us to display a file's contents

cat

300

This command will move our cursor position up 10 lines

10k

300

This command gives information about the directory itself, not the files it contains

ls -d

300

This command allows us to copy a directory, including any files and subdirectories

cp -r

300

This command will display the differences between two files

diff

300

This command allows us to create a directory and any parent directories that don't exist

mkdir -p

400

This command saves our changes to a file and exits the vi editor

:wq

400

This command displays long form information about all the files in a directory - including hidden files

ls -al

400

This command allows us to delete a directory including any files and subdirectories with a prompt to confirm removal

rm -ir

400

This command will list the pathnames of any files that have names beginning with 'hello' below the current directory

find . -name hello*

400

this command allows us to delete an empty directory

rmdir

500

This command allows us to copy to the beginning of the next word. 

yw

500

This command lists all the files and directories underneath the parent of our current directory

ls ..

500

This command allows us to delete a file

rm

500

This command will display a one-line summary of the ls keyword

man -k ls

500

Final Jeopardy Question - This command allows us to list the pathnames of any files larger than 100 kilobytes that are below our current directory

find . -size +100k