This vi mode allows you to edit the text in your selected file
Input Mode
This command lists all the files and directories that are direct descendants of our current directory
ls
This command allows us to move a file to a new location
mv
This command displays an online manual of all linux commands
man
This command allows us to create 3 new files in our current directory
touch file1 file2 file3
When in input mode, this command opens a new line above our current position
O
This command lists all the files and directories including any hidden files
ls -a
This command allows us to copy files or directories
cp
This command will give info about the contents of a file
file filename
This command allows us to display a file's contents
cat
This command will move our cursor position up 10 lines
10k
This command gives information about the directory itself, not the files it contains
ls -d
This command allows us to copy a directory, including any files and subdirectories
cp -r
This command will display the differences between two files
diff
This command allows us to create a directory and any parent directories that don't exist
mkdir -p
This command saves our changes to a file and exits the vi editor
:wq
This command displays long form information about all the files in a directory - including hidden files
ls -al
This command allows us to delete a directory including any files and subdirectories with a prompt to confirm removal
rm -ir
This command will list the pathnames of any files that have names beginning with 'hello' below the current directory
find . -name hello*
this command allows us to delete an empty directory
rmdir
This command allows us to copy to the beginning of the next word.
yw
This command lists all the files and directories underneath the parent of our current directory
ls ..
This command allows us to delete a file
rm
This command will display a one-line summary of the ls keyword
man -k ls
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