*ARGS.TECH | BLOG | PAGE 1 | Shakhzhakhan Maxudbek's personal blog
Loading...
BLOG
Terminal: ~

# Master the Linux `grep` command. This cheatsheet covers

# everything from basic filtering to advanced regex,

# recursive search, and getting context around your matches.


# ----- Mastering `grep`: Basic Filtering -----


# The most common use: filter output from another command:

# (e.g., find a specific process)

xinit@localhost:~$ ps aux | grep 'nginx'


# Search for a string in a single file (case-sensitive):

xinit@localhost:~$

www.args.tech
Terminal: ~

# A practical guide to killing unresponsive processes in Linux. Learn to use `kill`,

# `killall`, `pkill`, and `fuser` to stop processes by PID, name, or network port.


# ----- Kill by Process ID (PID) - The Classic Way -----


# First, find the Process ID (PID) of your app:

xinit@localhost:~$ ps aux | grep 'my_process'


# Then, kill the process by its PID:

# Sends a "graceful shutdown" signal (SIGTERM 15)

xinit@localhost:~$ kil…

www.args.tech
Terminal: ~

# Go beyond simple file search. Learn how to use the Linux "find" command to locate

# files by name, time, and size, and perform actions like `delete` or `chmod`.


# ----- The Power of `find`: Finding Files -----


# Find files by name (case-sensitive):

xinit@localhost:~$ find /path/to/search -type f -name "myfile.txt"


# Find files by name (case-insensitive):

xinit@localhost:~$ find /path/to/search -type f -iname "myfile.txt"

www.args.tech
Terminal: ~

# A simple, step-by-step cheatsheet to creating, activating, and managing Python

# virtual environments with venv. This guide also educate you how to install PIP packages

# in your virtual environment. Perfect for beginners on Linux, macOS, and Windows.


# ----- Python Virtual Environments (venv) -----


# 1. Install the venv package.

# On Debian/Ubuntu, you may need to install it separately:

xinit@localhost:~$ sudo apt install python3-venv

# On Windows and…

www.args.tech
Terminal: ~

# A step-by-step guide to securing your new VPS.

# Learn how to create a sudo user, disable root login,

# and configure a UFW firewall to protect your server.


# ----- Initial VPS Security Setup -----


# 1. Create a new user and add to SUDO group:

root@localhost:~$ adduser your_new_user

root@localhost:~$ usermod -aG sudo your_new_user


# 2. Lock the root account to disable direct password login:

xinit@localho…

www.args.tech
Terminal: ~

# Mastering SSH from basic login to port forwarding for remote access:

# Learn how to connect to custom SSH port, use identity keys, run remote

# commands, forward ports for database access with these practical examples


# Basic SSH connection:

xinit@localhost:~$ ssh user@remote-address


# Connect with a custom port (e.g., 2222):

xinit@localhost:~$ ssh user@remote-address -p 2222


# Connect using a specific private key:

www.args.tech
Terminal: ~

# Quickly find the largest files and folders that are eating up your disk space

# A practical guide to using "du" and sort to find the top 5 largest directories in Linux

# Check disk usage in the current or any specific path


# Top 5 largest files/folders in CURRENT directory:

xinit@localhost:~$ du -sh * | sort -rh | head -n 5

5.7G    Downloads

3.8G    Share

2.0G    Projects …

www.args.tech
Terminal: ~

# A simple, visual cheatsheet for the `tar` command in Linux.

# Learn how to create (-czvf) and extract (-xzvf) .tar.gz

# archives with practical, copy-paste ready examples.


# Create a .tar.gz archive:

xinit@localhost:~$ tar -czvf archive.tar.gz /path/to/source/dir


# Create a .tar.gz archive with long options:

xinit@localhost:~$ tar \

    --create --gunzip --verbose --file \

    archi…

www.args.tech
Terminal: ~

# The basic commands for navigation in Linux terminal

# See current location (print working directory)

# List files in directory

# Change directory, return in homedir of current user


xinit@localhost:~$ pwd # Where am I?

/home/xinit


xinit@localhost:~$ ls # What's in here?

Desktop   Documents   Downloads   Music   Pictures   Public  &nbs…

www.args.tech
Minimum required configurations for OpenVPN server and clients. When OpenVPN daemon start - it reads the configuration file and how it will work depends on this. How to setup OpenVPN server.

Server side configuration. Must be located in /etc/openvpn/server.conf:
port 1194
proto udp
dev tun

server 10.8.0.0 255.255.255.0
topology subnet

ifconfig-pool-persist /etc/openvpn/ipp.txt

push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"

keepalive 10 …
2 3 4 5 6
Top button
© *ARGS.TECH
2025
v 2.9.17