Update content of Linux fundamentals (#6190)
parent
c3972382af
commit
b0b01e7b83
9 changed files with 12105 additions and 33 deletions
File diff suppressed because it is too large
Load Diff
@ -1,16 +1,20 @@ |
||||
# Linux Navigation Basics: Basic Commands |
||||
|
||||
In the world of Linux, understanding how to navigate through the system is quite essential. Unlike many other modern operating systems, Linux primarily uses command-line interfaces (CLI) thereby, making it necessary to get comfortable with different commands. These basic commands under Linux navigation involve moving around the file system, viewing the contents of directories, creating, renaming or deleting files/directories, and more. Navigating through Linux using these commands not only increases efficiency, but also provides a deeper understanding of the system's file and directory structure. |
||||
Linux Navigation Basics is about using simple commands to move around and manage files on your computer. For example, cd lets you go into different folders, ls shows you what files and folders are inside, and pwd tells you where you are currently. These commands help you easily find and organize your files. |
||||
|
||||
|
||||
```bash |
||||
# Change directory |
||||
cd /path/to/directory |
||||
|
||||
# List contents of a directory |
||||
# Lists files and directories in the current directory. |
||||
ls |
||||
|
||||
# View current working directory |
||||
pwd |
||||
|
||||
# Displays the mannual page for a command |
||||
man ls |
||||
``` |
||||
|
||||
In this brief introduction, we will discuss and explore these basic commands and how they aid us in navigation around the Linux environment. |
@ -1,14 +1,25 @@ |
||||
# Vim: An Essential Tool for Editing Files |
||||
# Vim: An Essential Tool for Editing Files |
||||
|
||||
Vim, an acronym for 'Vi Improved', is a highly configurable and complex text editor built to enable efficient text editing in Linux environments. It is an improved version of the 'vi' editor, a standard text editor that comes with a UNIX operating system. While learning Vim can have a steep learning curve, its powerful features allow users to accomplish tasks more quickly than with many other text editors. |
||||
Vim (Vi Improved) is a powerful and flexible text editor used in Unix-like systems. It builds on the original Vi editor with additional features and improvements, including multi-level undo, syntax highlighting, and an extensive set of commands for text manipulation. |
||||
<br> |
||||
Vim operates primarily in three modes: |
||||
|
||||
One of the key reasons that make Vim popular among developers is its ability to handle large files adeptly, having a less memory footprint. Moreover, it operates in different modes such as 'command mode', 'insert mode', and 'visual mode' which eases the process of editing files. |
||||
|
||||
Although the challenge of learning Vim may seem daunting, it is a fundamental tool for anyone seeking mastery in the Linux environment. |
||||
- Normal (for navigation and manipulation). |
||||
- Insert (for editing text). |
||||
- Command (for executing commands). |
||||
|
||||
A simple use of Vim to edit a 'example.txt' file would look like this: |
||||
|
||||
```bash |
||||
vim example.txt |
||||
``` |
||||
|
||||
To insert new content, press 'i' for 'insert mode'. After editing, press 'ESC' to go back to 'command mode', and type ':wq' to save and quit. |
||||
To insert new content, press 'i' for 'insert mode'. After editing, press 'ESC' to go back to 'command mode', and type ':wq' to save and quit. |
||||
|
||||
To learn more, visit this: |
||||
<br> |
||||
Check out this [Github repo](https://github.com/iggredible/Learn-Vim?tab=readme-ov-file) on Vim from basic to advanced. |
||||
|
||||
- [@article@Learn Vim Progressively](https://yannesposito.com/Scratch/en/blog/Learn-Vim-Progressively/) |
||||
- [@video@Vim basics](https://www.youtube.com/watch?v=wACD8WEnImo&list=PLT98CRl2KxKHy4A5N70jMRYAROzzC2a6x&ab_channel=LearnLinuxTV) |
||||
- [@article@Platform to practice Vim](https://vim-adventures.com/) |
||||
|
@ -1,13 +1,26 @@ |
||||
# Nano: A File Editing Tool |
||||
|
||||
Nano is a popular, user-friendly text editor used for creating and editing files directly within the Linux command line interface (CLI). It is an alternative to editors like Vi and Emacs and is considered more straightforward for beginners due to its simple and intuitive interface. |
||||
Nano is a popular, user-friendly text editor used for creating and editing files directly within the Linux command line interface (CLI). It is an alternative to editors like `Vi` and `Emacs` and is considered more straightforward for beginners due to its simple and intuitive interface. |
||||
|
||||
Nano comes pre-installed with many Linux distributions and can be used for various tasks, such as writing scripts, editing configuration files, or taking quick notes. With its interactive command line interface, Nano offers a unique blend of usability and functionality. |
||||
Nano comes pre-installed with many Linux distributions but if it's not installed, here's how to do it for popular Linux distributions. |
||||
|
||||
```bash |
||||
# Ubuntu based distributions |
||||
sudo apt update |
||||
sudo apt install nano |
||||
|
||||
``` |
||||
```bash |
||||
# Arch Linux |
||||
sudo pacman -S nano |
||||
``` |
||||
To use Nano to edit or create files in Linux, the following command can be used: |
||||
|
||||
```bash |
||||
nano filename |
||||
``` |
||||
Visit the following resources to learn more: |
||||
|
||||
This command opens the named file or creates a new one if it doesn't exist yet. All the editing is done within the terminal itself. While using Nano, the command options are always visible at the bottom of the screen, making it an excellent choice for Linux beginners or those preferring straightforward text editing tools. |
||||
- [@article@Blog on nano](https://ioflood.com/blog/nano-linux-command/) |
||||
- [@article@Nano-text-editor](https://www.geeksforgeeks.org/nano-text-editor-in-linux/) |
||||
- [@video@Nano editor fundamentals](https://www.youtube.com/watch?v=gyKiDczLIZ4&ab_channel=HackerSploit) |
||||
|
Loading…
Reference in new issue