Create and edit text files in the terminal

Create a new file:


Working with vim


To switch between editing and command mode in vim hit the ‚i‘ key to edit text (insert) or the escape key to enter commands which start with a colon, like :q.

Enter the filesystem

Most basic stuff

enter a directory with a given name:

enter via absolute path, from anywhere to anywhere:

list files and directories:

list hidden files and directories:

-l use a long listing format
-d list directory entries

create a directory

remove a file

remove a directory with subdirectories and files

or with force

Copy a directory: