Skip to main content

Posts

Showing posts with the label Security

Linux Terminologies

Linux Commands: From Basic to Advanced Linux Commands: From Basic to Advanced This post explores essential Linux commands, covering everything from navigating the file system to managing processes and more. It's a journey from basic to advanced usage. I. Basic File System Navigation These commands are your bread and butter for navigating the Linux file system: Command Description ls Lists files and directories in the current directory. Use ls -l for detailed information, ls -a to show hidden files, and ls -h for human-readable file sizes. cd Changes the current directory. cd .. goes up one directory, cd ~ goes to your home directory. pwd Prints the current working directory. mkdir Creates a new directory (e.g., mkdir my_directory ). Use mkdir -p path/to/new/directory to create parent directories as needed. rm Removes files (e.g., rm my_file.txt ). Use rm -r directory to remove a directory and its contents (be very careful with this!). rm -rf...

DAMN BASH

Bash Scripting: From Basic to Advanced Bash Scripting: From Basic to Advanced Bash (Bourne Again SHell) is a powerful command-line interpreter and scripting language commonly used in Linux and macOS environments. This post covers Bash scripting from basic commands to more advanced techniques. I. Basic Commands These commands are the building blocks of Bash scripting: Command Description ls Lists files and directories. cd Changes the current directory. pwd Prints the current working directory. mkdir Creates a new directory. rm Removes files or directories (use with caution!). cp Copies files or directories. mv Moves or renames files or directories. cat Displays file content. echo Prints text to the console. II. Variables Variables store data that can be used in your scripts: name="John Doe" echo "Hello, $name!" age=30 echo $((age + 5)) # Arithmetic operations III. Input/Output Redirection Redirect input an...