Skip to main content

Tips

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

A collection of 127 posts

Managing Nextcloud instance
Tips

10 Easy to Follow Tips for Managing a Self-hosted Nextcloud Instance with Docker

Some helpful advice to keep in mind and follow in practice while you self-host your Nextcloud instance with Docker!

· Avimanyu Bandyopadhyay

7 Useful Tips for Self-hosting a Ghost Instance With Docker
Tips

7 Useful Tips for Self-hosting a Ghost Instance With Docker

A useful checklist that can prevent many recurring maintenance issues from happening on your Ghost Docker instance after you deploy it.

· Avimanyu Bandyopadhyay

Live Patching Ubuntu Server so That You Don't Have to Reboot it
Tips

Live Patching Ubuntu Server so That You Don't Have to Reboot it

Tired of rebooting your Ubuntu server after every security upgrade? You may enable live kernel patching and forget about reboots altogether.

· Abhishek Prakash

How to Migrate CentOS 8 to CentOS Stream
Tips

How to Migrate CentOS 8 to CentOS Stream

CentOS 8 reaches end of life by the end of 2021. Learn how to update CentOS 8 to CentOS Stream.

· Debdut Chakraborty

How to Resize LVM Partition Inside an Extended Partition
Tips

How to Resize LVM Partition Inside an Extended Partition

Resizing a logical volume in Linux is not very difficult but it can be tricky if the root is under an extended partition.

· Rakesh Jain

List only directories in Linux
Tips

How to List Only Directories in Linux

Listing the contents of a directory is easy. But what if you want to list only the directories, not files and links?

· Abhishek Prakash

YAML basics
Tips

YAML Basics Every DevOps Engineer Must Know

As a DevOps engineer, you'll be dealing with YAML files a lot. It is always a good idea to understand the basic YAML syntax.

· Rakesh Jain

Automatically Logout Inactive Users From Linux System
Tips

Automatically Logout Inactive Users From Linux System

Here are two ways you can automatically log out idle users from your Linux system.

· Abhishek Prakash

Linux server monitored by a sysadmin
Tips

12 Things to do After Installing a Linux Server

Just deployed a server? Here are some recommended things to do after installing Linux server to make it more secure. Automated script is also provided.

· LHB Community

Update Debian Linux
Tips

How to Update Debian Linux

Learn to update Debian Linux system in one single command. Yes, it's that easy and straightforward.

· Abhishek Prakash

Which Linux
System Info

How to Find Which Linux Version You Are Running

Logged in on a Linux system via SSH and wondering which Linux distribution is it? Here's how to check the Linux version.

· Abhishek Prakash

How to Display Specific Lines of a File in Linux Command Line
Tips

How to Display Specific Lines of a File in Linux Command Line

Here are several ways to display specific lines of a file in Linux command line.

· Abhishek Prakash

How to List Systemd Services in Linux
Tips

How to List Systemd Services in Linux

Check what systemd services run on your Linux system in this tutorial.

· Abhishek Prakash

Finding the Biggest Files and Folders in Linux Command Line
Tips

Finding the Biggest Files and Folders in Linux Command Line

Quick tutorial to show you how to find the biggest files on your Linux machine using a few commands that you may already be familiar with du, sort, and head.

· Christopher Murray

Reboot
Tips

How to Reboot Linux Using Command Line

Here are various ways to reboot a Linux system from the command line.

· Abhishek Prakash

Checking Spellings in Linux Command Line
Tips

Checking Spellings in Linux Command Line

Linux command line is versatile. There are commands that can be used to perform spellcheck and find out misspelled words. Here's how!

· Abhishek Prakash

Group Management Commands in Linux
Tips

Group Management Commands in Linux

Group is an essential part of Linux system management and security. Check out various commands that you can use for managing groups in Linux.

· Abhishek Prakash

Exit docker container
Tips

How to Exit a Docker Container

This quick little docker tip shows how to exit a docker container.

· Abhishek Prakash

How to Remove User From Group in Linux [Quick Tip]
Tips

How to Remove User From Group in Linux [Quick Tip]

Learn how to remove a user from a specific group in Linux command line.

· Abhishek Prakash

How to Disable Swap in Linux
Tips

How to Disable Swap in Linux

In scenarios like changing the swap size, you should disable the swap first. This quick tutorial shows the steps for disabling swap in Linux.

· Abhishek Prakash

How to Run sudo Commands Without Password
Tips

How to Run sudo Commands Without Password

Learn how to run some or all sudo commands without entering the password on Ubuntu or any other Linux distribution.

· Abhishek Prakash

How to Clear Systemd Journal Logs
Tips

How to Clear Systemd Journal Logs

This quick tutorial shows you two ways to clear systemd journal logs from your Linux system.

· Abhishek Prakash

How to Lock and Unlock User in Linux
Tips

How to Lock and Unlock User in Linux

How do you lock a user account in Linux? Even more importantly, how do you unlock the user in Linux? Learn various ways of locking and unlocking users in Linux command line.

· Abhishek Prakash

How to Restart Apache in Ubuntu
Tips

How to Restart Apache in Ubuntu

A quick tip that shows how to restart Apache server in Ubuntu and other Linux distributions.

· Abhishek Prakash

Installing Vim on Ubuntu
Tips

How to Install Vim on Ubuntu

Learn to install Vim on Ubuntu Linux. Also learn to make Vim the default text editor in Ubuntu and Debian based distributions.

· Abhishek Prakash

Running aliased commands with sudo access
Tips

How to Run an Alias With Sudo in Linux

By default, you cannot run an aliased command with sudo. Don't worry. With this neat little tip, you'll be able to run any alias with sudo access in Linux.

· Abhishek Prakash

How to Clear Swap Memory in Linux
Tips

How to Clear Swap Memory in Linux

Learn how to clear swap in Linux without losing any important data. Also learn why would you clear the swap manually.

· Abhishek Prakash

Check swap in Linux
Tips

How to Check Swap Space in Linux

Wondering how much swap your system has and how much swap is in use? Here’s how to check swap usage in Linux.

· Abhishek Prakash

How to Increase Swap Size on Ubuntu Linux
Tips

How to Increase Swap Size on Ubuntu Linux

In this quick tip, you’ll learn to increase the swap size on Ubuntu and other Linux distributions.

· Abhishek Prakash

How to Change Hostname in Debian
Tips

How to Change Hostname in Debian

This quick tip teaches you various ways to change hostname in Debian Linux distributions.

· Abhishek Prakash