Contents
Basic Linux Navigation and File Management
- Introduction.
- Finding Where You Are with the “pwd” Command.
- Looking at the Contents of Directories with “ls”
- Moving Around the Filesystem with “cd”
- Create a File with “touch”
- Create a Directory with “mkdir”
- Moving and Renaming Files and Directories with “mv”
- Copying Files and Directories with “cp”
How do I edit a file in Terminal?
Part 3 Using Vim
- Type vi filename.txt into Terminal.
- Press ↵ Enter .
- Press your computer’s i key.
- Enter your document’s text.
- Press the Esc key.
- Type :w into Terminal and press ↵ Enter .
- Type :q into Terminal and press ↵ Enter .
- Reopen the file from the Terminal window.
How do I cd to my home directory with one command?
The working directory
- To navigate to your home directory, use “cd” or “cd ~”
- To navigate up one directory level, use “cd ..”
- To navigate to the previous directory (or back), use “cd -“
- To navigate into the root directory, use “cd /”
What common commands are used to navigate through shells?
Basic Linux Navigation and File Management
- Introduction.
- Finding Where You Are with the “pwd” Command.
- Looking at the Contents of Directories with “ls”
- Moving Around the Filesystem with “cd”
- Create a File with “touch”
- Create a Directory with “mkdir”
- Moving and Renaming Files and Directories with “mv”
- Copying Files and Directories with “cp”
How do I view the contents of a file in Linux?
Manage Files Effectively using head, tail and cat Commands in
- head Command. The head command reads the first ten lines of a any given file name. The basic syntax of head command is: head [options] [file(s)]
- tail Command. The tail command allows you to display last ten lines of any text file.
- cat Command. The ‘cat’ command is most widely used, universal tool.
Photo in the article by “Max Pixel” https://www.maxpixel.net/Fedora-Operating-System-Linux-Command-Shell-Xen-Os-246242