Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
orioninsist committed Sep 16, 2023
1 parent 1e17502 commit 98de290
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions content/blog/linux-mastery-essential-commands-shortcuts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
title: "Linux Mastery Essential Commands Shortcuts"
date: 2023-09-16T13:08:57+03:00
draft: false
description: "Master Linux commands, shortcuts, and permissions for effective Linux usage"
author: "orioninsist"
tags: ["linux","commands","terminal"]
keywords: ["linux","commands","terminal"]
slug: "linux-mastery-essential-commands-shortcuts"
language: "English"
type: "blog"
cover:
image: "/blog/linux-mastery-essential-commands-shortcuts.png"
alt: "linux-mastery-essential-commands-shortcuts.png"
---


## Introduction
Linux's power lies in its command-line interface, and mastering essential commands is key to becoming proficient. In this article, we'll explore a set of vital Linux commands, shortcuts for popular editors (neovim, vim, and emacs), and delve into file permissions. We'll also guide you on how to add popular plugins step by step.

## Editor Shortcuts and Popular Plugin Installation

Learn essential shortcuts and how to install popular plugins for neovim, vim, and emacs.

## Creating and Modifying Files
```markdown
touch a.txt: Create an empty file.
chmod +x a.txt: Add execute permission to a file.
chmod 777 a.txt: Set read, write, and execute permissions for all users.
chmod 776 a.txt: Set read, write, and execute permissions for owner and group.
```
## Running Bash Scripts
```markdown
./bashscript: Execute a bash script.
bash bashscript: Run a bash script.
```
## Understanding Environment Variables
```markdown
echo $PATH: Display the system's PATH environment variable.
bash bashscript (with arguments):
echo $1 $2: Access and display command line arguments.
echo helloworlddddddddddd: Output a simple message.
echo "hello": Output a message with quotes.
```
## Working with Files and Searching
```markdown
sudo pacman -S mlocate: Install the 'mlocate' package.
which locate: Find the location of the 'locate' command.
export PATH=$PATH:/usr/bin: Add a directory to the PATH environment variable.
source ~/.zshrc: Refresh the shell configuration.
find ~/ -name "example.txt": Search for a file by name.
grep -rl "search_string" /path/to/search: Recursively search for a string in files.
sudo updatedb: Update the 'locate' database.
```
## Understanding File Permissions
```markdown
Learn about file permissions and their meanings, as displayed by the 'ls -l' command.
```
## Conclusion
By mastering these essential Linux commands, shortcuts for popular editors, and understanding file permissions, you'll become a more effective and capable Linux user.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 98de290

Please sign in to comment.