Skip to main content

Tips

Tips on how to do certain things in Linux command line.

A collection of 127 posts

Create large text files in Linux
Tips

How to Create Large Files in Linux

Want to create large file of 1 GB or some other size? Here are various ways of creating large files with predefined sizes in Linux.

· Abhishek Prakash

UUID of a disk partition in Linux
Tips

How to Get the UUID of a Disk Partition in Linux

UUID is a property of disk partitions used to uniquely identify them. Here are various ways to get the UUID of a disk partition in the Linux command line.

· Sagar Sharma

Concatenate Files in Linux Command Line
Tips

Concatenate Files in Linux Command Line

Want to concatenate two files in the Linux command line? Here's how to do that with the cat command.

· Sagar Sharma

Enable timestamp in history command in Linux
Tips

Enable Timestamp in History Command in Linux

You can easily see which commands you ran in the past. But do you know when did you run it? The history command can tell you that as well.

· Sagar Sharma

See process tree in Linux
Process Handling

Show Process Tree in Linux

Here are multiple commands that you can use to show the process tree in the Linux command line.

· Sagar Sharma

Scan ports with nmap
Tips

Scanning Ports With nmap

Nmap is an open source utility for network discovery and security auditing. Learn how to scan specific or multiple or all ports with nmap.

· Abhishek Prakash

Pretty print JSON file in Linux terminal
Tips

Pretty Print JSON in Linux Command Line

JSON is human-readable markup language but reading it in the terminal might be difficult. Learn to format JSON content in a structured way.

· Sagar Sharma

Delete links in Linux
Tips

How to Delete Soft Links in Linux

Learn a thing or two about deleting soft links and hard links in the Linux command line.

· Abhishek Prakash

Pretty print XML in Linux command line
Tips

Pretty Print XML in Linux Command Line

XML is human-readable markup language but reading it in the terminal might be difficult. Learn to format XML content in a structured way.

· Sagar Sharma

Exclude files from tar
Tips

Exclude Files and Directories While Creating Tar File

Don't want all the files in your tarball? Here's how to exclude files and folders while creating tar archive file.

· Sagar Sharma

find regex command
Tips

Using Find Command With Regex

Enable the beast mode of the find command by using regex for your search.

· Sagar Sharma

Redirect to dev null in Linux
Tips

How to Redirect Output and Error to /dev/null in Linux

Learn how to redirect output or error or both to /dev/null in Linux so that it doesn't show up on the screen.

· Sagar Sharma

Print Environment Variables in Linux
Tips

How to Print Environment Variables in Linux

Wondering what environment variables are set on your current shell? Learn how to print environment variables in Linux.

· Sagar Sharma

Follow Symbolic Links in Linux
Tips

How to Follow Symbolic Links

You got a symbolic link and wondering about the actual source file? Here's how to follow symlinks in Linux.

· Sagar Sharma

Find non-ascii characters in Linux
Tips

Find non-ASCII Characters in Text Files in Linux Command Line

Got a text file with non-ascii characters? Here's how to find those characters in Linux command line.

· Sagar Sharma

Check crontab logs in Linux
Tips

How to Check Crontab logs in Linux

Wondering if the cronjob ran successfully or not? Stop wondering. Just check the cron logs. Here's who to do that.

· Abhishek Prakash

Common networking port numbers in Linux
Tips

Common Networking Port Numbers in Linux

Here are the common networking ports you'll encounter in Linux.

· Sagar Sharma

Change file ownership recursively with chown command
Tips

How to Change Ownership of Files and Folders Recursively

Learn how to use the chown command to recursively change the user and group ownership of files and directories in Linux command line.

· Abhishek Prakash

Making nested directories in Linux
Tips

Making Nested Directories in Linux

Learn to make nested directories so that if a directory in the given path doesn't exist, it is created automatically.

· Abhishek Prakash

Checking open ports in Linux
Tips

How to Check Open Ports in Linux?

Which ports are occupied by which service? How many open ports are there? Learn to scan for open ports on your Linux system or any remote system.

· Abhishek Prakash

Make file executable in Linux
Tips

How to Make a File Executable in Linux terminal?

New to Linux command line and wondering how to make a bash script or some other file executable? Here's how to do it.

· Abhishek Prakash

Finding PID in Linux command line
Process Handling

Find the PID and PPID of a Process in Linux

Learn how to find PID using a process name in Linux. Also learn to get the parent process ID (PPID) of the given process.

· Hunter Wittenborn

grep search in all files and directories
Tips

How to Perform Grep Search on All Files and in All Directories

The versatile grep command lets you perform search for a text in all the files and all the subdirectories of a directory. Here's how to do that.

· Abhishek Prakash

Homelab
Tips

How I Built a Homelab on the Budget

Want to set up a homelab? Here's how I used old hardware and open source software to build my homelab.

· Helder

Docker DevOps Tips
Tips

How to Upgrade Docker Containers Automatically When Updating Dockerized Web Apps

Updating WebApps is a regular task for sysadmins. Upgrading the containers that hold them is another extra effort. Automate that & make life easier.

· Avimanyu Bandyopadhyay

Watch logs in real time in Linux
Tips

3 Ways to Watch Logs in Real Time in Linux

Here's how to use tail command effectively for watching log files in real time. Less and Mutitail commands also come in handy.

· Abhishek Prakash

Dealing with spaces in file names in Linux
Tips

How to Tackle Filenames With Spaces in Linux

Spaces in the file names could be tricky, specially for new Linux users. Learn how to deal with them.

· Abhishek Prakash

Simple yet useful bash history tips for Linux users
Bash Tips

5 Simple Bash History Tricks Every Linux User Should Know

Effectively using bash history will save you plenty of time in the Linux terminal.

· Abhishek Prakash

Essential Docker commands
Docker Tutorials

21 Essential Commands Every Docker User Should Know

A compilation of 21 executable and informative Docker commands for your quick reference.

· Avimanyu Bandyopadhyay

Useful docker commands
Docker Tutorials

3 Rather Unknown Docker Commands That Will Help You in a Variety of Scenarios

Here are some Docker commands that you might not know about but they could come handy while managing your containers.

· Debdut Chakraborty