Linux Directory Structure

/bin : All the executable binary programs (file) required during booting, repairing, files required to run into single-user-mode, and other important, basic commands viz. , cat, du, df, tar, rpm, wc, history, etc. /boot : Holds important files during boot-up process, including Linux Kernel . /dev : Contains device files for all the hardware devices […]

Linux Basic Commands and Description – Part 1

adduser : Add a new user arch : Print machine architecture awk : Find and Replace text within file(s) bc : An arbitrary precision calculator language cal : Display a calendar cat : Concatenate files and print on the standard output chdir : Change working directory chgrp : Change the group ownership of files chkconfig […]

Samba-Share Setup

Samba is basically used for sharing files, printers etc. with other computers which can be windows, Linux, Ubuntu, Mac, etc.We have mentioned steps to install and configure samba in a Linux System. Step1: Install required packages using yum. # yum install samba* # rpm -qa | grep -i samba (check installed packages) Step2: Now configure […]

Systemd Cheat Sheet

Systemd Services Command (Cheat Sheet) 1.VIEWING systemd INFORMATION systemctl list-dependencies              Show a unit’s dependencies systemctl list-sockets                   List sockets and what activates systemctl list-jobs                      View active systemd jobs systemctl list-unit-files      […]

Enable direct root login on Ubuntu

By default, direct root login is disabled in Ubuntu. You need to follow below steps to enable it. Step1: Login to server via sudo user and become root. testuser@master:~$ testuser@master:~$ sudo su – [sudo] password for testuser: root@master:~# Step2: Open /etc/ssh/sshd_config file using your favourite editor and make below changes: Current Configuration: root@master:~# cat /etc/ssh/sshd_config […]