Increase swap memory in Solaris 11

Firstly, check where your swap file is, If it is a ZFS volume created during the Solaris installation then follow below steps: # top -d1 | grep -i "total swap" Memory: 126G phys mem, 93G free mem, 4096M total swap, 4095M free swap # swap -l swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 248,1 16 33554416 […]

pkg commands in Solaris 11

You can manage package management in Solaris 11 using “pkg” command which has install, update, search etc. as attributes to manage packages. # pkg list (It will show you all installed packages on server.) NAME (PUBLISHER) VERSION IFO archiver/gnu-tar 1.27.1-0.175.3.0.0.30.0 i– audio/audio-utilities 0.5.11-0.175.3.0.0.30.0 i– codec/flac 1.2.1-0.175.3.0.0.14.0 i– # pkg list | grep -i x11-info-clients (Grep […]

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 […]