How to Create and Use Alias in Linux

We all know that command line is fast, but Linux users often need to use the same command over and over again it slow you down and affects you productivity and also if the command is long you need to remember it and type it. You can save some time by creating aliases for your…

Working with XZ (Lossless Data Compression) Tool in Linux

XZ is another general purpose data compression tool with command line syntax similar to gzip and bzip2. xz compresses or decompresses each file according to the selected operation mode. It supports different formats to compress or decompress files. XZ Command Examples in Linux To create a compressed file you just need to use -z or…

Working with 7zip compression tool on Linux

7-Zip is a file archiver with a high compression ratio. It is free software with open source.You can use 7-Zip on any computer, including a computer in a commercial organization. You don’t need to register or pay for 7-Zip. 7-zip support multiple formats including:Packing and Unpacking for 7z, XZ, BZIP2, GZIP, TAR, ZIP and WIM …

File Compression & Decompression on Linux

One of the basic file operation performed while working on Linux is file compression and decompression. Compression reduces the size of the file depending on the type of the file. Reduced file size helps when moving files between different servers or also If you want to free some of your hard disk. Here I have…

How to Change SSH Login Message

Edit the /etc/ssh/sshd_config file. $ sudo vim /etc/ssh/sshd_config Uncomment or add the line Banner /etc/banner Banner /etc/banner /etc/banner is just a file name it can be anything. Create the file /etc/banner $ sudo vim /etc/banner Add and save whatever message you want to display to the file /etc/banner This is dev server for www.example.comDocument Root:…

Configure Static IP Address on Ubuntu 18

Recently I have been working with Ubuntu 18, there has been a lot of changes but one of the biggest change is how networking is managed and configured. When you cat /etc/network/interfaces file it tells us to use Netplan. Netplan is the new network configuration management tool that was introduced in Ubuntu 17.10. With Netplan…

How to configure Static IP Address on Ubuntu

There are two ways in which a system can get its IP address first is  DHCP server second if you configure it statically. By default when Ubuntu is installed it takes IP from the DHCP server. But we need static IP to connect to server for SSH or to access any other services that will…

Sticky Bit Permissions with Linux

This is a special kind of permission in Linux think of a situation where you need a conman shared folder where all users can create files but these users can only modify the files which are owned / created by them. It is actually possible. This can be achieved by setting Sticky Bit on that…

Managing file and Directory Permissions in Linux

Permission are crucial part of every system. After creating files and directories you need to set the proper permissions on file and directories so that they can be accessed by required users/groups. In Linux permissions are managed by chmod and chown commands. Permission in Linux In Linux there are Following three basic Permissions: ReadWriteExecute While…

Best Practical examples of using “usermod” Command

In Linux creating new user accounts is one thing managing and modifying them overtime according to needs is another, this is when usermod command comes in picture, usermod command can be used to modify all kind of properties of a user account including changing home directory, shell, making account active or inactive etc.   In…