UnUnix
Featured in Unix
Articles in Unix
38New
A→Z
Bash Concatenate Strings
Join two strings together in Bash
Bash Comments
Comments will help make your scripts more readable
Bash printf
How to use string formatting with bash printf
How to Add a User to Sudoers
Grant elevated privileges to users
Bash Case Statement
A popular alternative to the if-then-else statement
Bash Aliases
Create an alias for common commands
Chmod 755
General meaning, examples, and flags for chmod 755
Reading User Input
Via command line arguments and prompting users for input
Chmod +X
An overview of chmod +x and how to use it
Chown Recursively
How to recursively change the ownership of files
Curl Follow Redirect(s)
Learn how to make curl automatically follow a redirect along with the most common pitfalls to avoid when doing so.
Curl Post Request
Use cURL to send data to a server
Curl With Headers
Send request headers with cURL
Curl With Basic Auth
Perform a basic access authentication with cURL
Show Curl Headers
Curl request and response headers
Grep Show Lines Before and After
Learn how to show N lines or all lines before and after the result returned by the `grep` command.
How to run chmod recursively
Using -R is probably not what you want
How to run cron every hour
Along with variations and examples
How to use sudo rm -rf safely
We'll help you understand its components
Kill a Process in Linux
Strategies for finding and killing processes
Kill Command
Basic syntax and usage of the kill command
mkdir if not exists
Create directories when they don’t already exist
How To Use Unix Wildcards
How to use wildcard characters in Linux/Unix commands
Linux File Permissions Explained [Needs Table]
Understand what common expressions like “drwxr xr x” actually mean for a file or directory’s read, write, and execute permissions.
Generate, Sign, and View a CSR With OpenSSL
Learn how to generate, self-sign, and verify certificate signing requests with `openssl`.
Copy File From Remote To Local Using Scp
Copy files and directories from a remote to local
Removing Directories in Linux
How to remove directories and their content
What Does sudo chown Do?
Why sudo chown is sudo and some common pitfalls
How To Use sudo su
A quick overview of using sudo su
Verify Certificate With OpenSSL
Learn how to verify local and remote certificates with openssl
Ignoring SSL Certificate Issues with cURL
Discover how to bypass SSL certificate verification in cURL for HTTPS endpoints, addressing both direct requests and those via proxies. We will also see how this could be handled both in the terminal and system-wide via the `.curlrc` file
Upload Files With curl
Learn how to upload a file to FTP, SFTP servers, Artifactory, and AWS S3 using the curl command.
How to Download Files With curl And wget
Learn how to start and resume the download of files via the HTTP and FTP protocols using the curl and wget commands.
Create Directories Recursively With mkdir
Learn how to recursively create nested directories using the mkdir command, Bash scripts, and Python scripts.
POST JSON Data With Curl
How to send valid HTTP POST requests with JSON data payloads using the curl command and how to avoid common syntax pitfalls. Also, how to solve the HTTP 405 error code.
How to Check the Size of Folders in Linux
Learn how to output the size of directories and subdirectories in a human-readable format in Linux and macOS using the du command.
Count Files in Linux
Learn how to count files and folders contained in directories and subdirectories in Linux using the ls, find, and wc commands.
List Open Ports in Linux
Learn how to output the list of open TCP and UDP ports in Linux, as well as their IP addresses and ports using the netstat command.