Skip to content
sharadchhetri
  • Home
  • Linux Commands
  • ResourcesExpand
    • Learn Linux
  • My Projects & WorkExpand
    • My Nagios Plugin
    • My Dockerhub Repo
    • My WordPress plugins
    • My Github Repos
  • AboutExpand
    • Privacy Policy
    • Contact
sharadchhetri
  • How to increase Password Expire date without resetting the password
    Linux | Linux Admin | Tips And Tricks

    How to increase Password Expire date without resetting the password

    BySharad Chhetri November 22, 2011December 10, 2024

    How to increase Password Expire date without resetting the password It is commonly used that when we have to increase the password expire date of any user we simply reset the password of that user . But we can increase the Password Expire date of user without resetting the password. Here is the below scenario…

    Read More How to increase Password Expire date without resetting the passwordContinue

  • Linux / Unix : 3 Commands to read file inside compressed .gz files without extracting
    Linux | Tips And Tricks

    Linux / Unix : 3 Commands to read file inside compressed .gz files without extracting

    BySharad Chhetri September 13, 2011December 10, 2024

    In this post we will learn about 3 simple commands by which we can read the files inside the compressed .gz file without extracting it.

    Read More Linux / Unix : 3 Commands to read file inside compressed .gz files without extractingContinue

  • In ESX , passwd: authentication information cannot be recovered
    Linux

    In ESX , passwd: authentication information cannot be recovered

    BySharad Chhetri July 27, 2011December 10, 2024

    In ESX , passwd: authentication information cannot be recovered The ESX box has AD authentication. I was getting error when I am trying to reset user password by using command “passwd user_name” Whenever U get this error “passwd: authentication information cannot be recovered”,it means something is wrong in ur some /etc/pam.d files. In my case…

    Read More In ESX , passwd: authentication information cannot be recoveredContinue

  • df command not showing correct free space in linux
    Linux | Tips And Tricks

    df command not showing correct free space in linux

    BySharad Chhetri July 7, 2011December 10, 2024

    df not showing correct free space in linux In this post,I am sharing the troubleshooting. When we find the disk is full,we generally remove the files from that partition.Sometimes it is also observed that after removing files from the partiton. The df -h command,still shows partition is full. For this problem,follow the given below steps…

    Read More df command not showing correct free space in linuxContinue

  • script to change group from a file having list of users
    Linux

    script to change group from a file having list of users

    BySharad Chhetri June 17, 2011December 10, 2024

    In this post we are sharing the script to change group from a file having list of users. You can do the changes in script as per your requirement. The script is also using the /etc/group file to validate group names which could be existing in user supplied group file. Given below is the sample…

    Read More script to change group from a file having list of usersContinue

  • Set and reset user password by bash script
    Linux

    Set and reset user password by bash script

    BySharad Chhetri June 8, 2011December 10, 2024

    In this post learn how to set and reset user password by bash script on Linux systems. It is quite good for Linux System Admin who wants to know how to set and reset user account password with bash script. We have used the standard input (stdin) with passwd command. Advantage: 1. Get the list…

    Read More Set and reset user password by bash scriptContinue

  • How to customize nologin shell message
    Linux

    How to customize nologin shell message

    BySharad Chhetri May 23, 2011December 10, 2024

    In this post we will learn how to customize the nologin shell message for user on linux/unix system. This is very useful when you want to display your company strict legal security message to users who are trying to login into your servers. As we know that , nologin shell won’t allow user to login…

    Read More How to customize nologin shell messageContinue

  • How To Use opt In Bash Script
    Linux

    How To Use opt In Bash Script

    BySharad Chhetri May 15, 2011December 10, 2024

    How To Use opt In Bash Script,Example This is an exmaple of how to create bash script with Opt in. #!/bin/bash echo “Select no. for option” OPTIONS=”Hello LinuxTribe Quit” select opt in $OPTIONS; do if [ “$opt” = “Quit” ]; then echo done exit elif [ “$opt” = “Hello” ]; then echo Hello World elif…

    Read More How To Use opt In Bash ScriptContinue

  • How To Use case in Bash Script, Example
    Linux

    How To Use case in Bash Script, Example

    BySharad Chhetri May 15, 2011December 10, 2024

    How To Use case in Bash Script, Example This is only an example. #/bin/bash echo “Give Full Path where the file is located” read pth echo “Give the file name” read fle if [ -f $pth/$fle ];then echo “$fle file is found in $pth” else echo “$fle file not found in $pth” echo “U r…

    Read More How To Use case in Bash Script, ExampleContinue

  • Debian
    Linux | SSH | Tips And Tricks

    Debian: Set non-interactive mode in apt / apt-get command

    BySharad Chhetri February 18, 2011December 18, 2024

    In this post, we will know how to do non-interactive apt install in Debian Operating System.
    By this method you can skip the interactive query ask while doing apt or apt-get install command.

    Read More Debian: Set non-interactive mode in apt / apt-get commandContinue

  • xen vm migration
    Linux

    Xen Virtual Machine Migration (In Hyper-VM)

    BySharad Chhetri January 22, 2011December 10, 2024

    In this post, we will learn about how to do Xen Virtual Machine migration from one Host Base Machine to other. We hope you know how to create a Virtual Machine in Xen. Our both host machines had the same specs and same LVM management. Here LVM Management means in both host machine we have…

    Read More Xen Virtual Machine Migration (In Hyper-VM)Continue

  • install dhcp server
    Linux

    How to install and configure DHCP server on RHEL 5

    BySharad Chhetri January 19, 2011December 10, 2024

    Dynamic Host Configuration Protocol (DHCP) is a client/server protocol helps to assign ip address automatically and dynamically to client machine.In this post we will learn how to install and configure DHCP server in RHEL 5. Note: DHCP runs on UDP port 67 for the DHCP serve and UDP port 68 for the DHCP client machines….

    Read More How to install and configure DHCP server on RHEL 5Continue

  • sed expression error
    Linux | Tips And Tricks

    sed: -e expression #1, char 24: Invalid range end

    BySharad Chhetri January 2, 2011December 10, 2024

    While working on sed command stricken with this, error : “sed: -e expression #1, char 24: Invalid range end “). To solve this problem, we have used sed and tr command. We made a bash script having expect command in it. We were passing variable value from my mysql database into the bash script. The…

    Read More sed: -e expression #1, char 24: Invalid range endContinue

  • expect bash
    Linux

    How to Use Expect In Bash Script

    BySharad Chhetri December 7, 2010December 10, 2024

    In this bash script we will use expect scripting. Expect is known primarily as an indispensable application for system administrators. We use expect generally in case where input from user is required , for eg. ssh, ftp, telnet, sudo etc. Given below is sample bash script which will first ssh the remote host and then…

    Read More How to Use Expect In Bash ScriptContinue

  • nagios plugin check_mailfromd
    Linux

    Nagios plugin check_mailfromd bash script

    BySharad Chhetri October 17, 2010December 10, 2024

    In this post we will create Nagios plugin check_mailfromd in bash script.This nagios plugin is written in a very simple way and easy to understand. Task To check service status of mailfromd service. Create nagios plugin check_mailfromd Create a new bash script file called check_mailfromd. Use your favorite file editor for this, we in general…

    Read More Nagios plugin check_mailfromd bash scriptContinue

Page navigation

Previous PagePrevious 1 … 36 37 38 39 Next PageNext

Tags

apache automation awk aws bash script cat CentOS centos 7 debian devops docker freebsd ftp ghost git grep jenkins kvm linux linux command MariaDB Server mysql Nagios nginx Octopress owncloud Owncloud 6 php postfix postgres python Red Hat rpm sed ssh swap tips troubleshooting ubuntu user management vagrant varnish virtualbox vsftp wordpress
  • About Me
  • Contact
  • Learn Linux
  • My Wordpress plugins
  • Privacy Policy
  • Search
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

© 2025 sharadchhetri.com

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My Projects & Work
    • My Nagios Plugin
    • My Dockerhub Repo
    • My WordPress plugins
    • My Github Repos
  • About
    • Privacy Policy
    • Contact