-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e17502
commit 98de290
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
60 changes: 60 additions & 0 deletions
60
content/blog/linux-mastery-essential-commands-shortcuts.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.