• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
sharadchhetri.com

sharadchhetri.com

Linux,Cloud Computing And DevOps

  • Home
  • Linux
  • CloudComputing
    • Introduction Cloud Computing
    • Amazon AWS
  • Free E-Books
  • About Me

bash script

script to change group from a file having list of users

June 17, 2011 by Sharad Chhetri Leave a Comment

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

Filed Under: Linux Tagged With: bash script

Set and reset user password by bash script

June 8, 2011 by Sharad Chhetri Leave a Comment

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

Filed Under: Linux Tagged With: bash script

How To Use opt In Bash Script

May 15, 2011 by Sharad Chhetri Leave a Comment

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

Filed Under: Linux Tagged With: bash script

How To Use case in Bash Script, Example

May 15, 2011 by Sharad Chhetri Leave a Comment

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

Filed Under: Linux Tagged With: bash script

How to Use Expect In Bash Script

December 7, 2010 by Sharad Chhetri 9 Comments

expect bash

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

Filed Under: Linux Tagged With: bash script, expect

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2

Primary Sidebar

Follow Us

  • Facebook
  • Twitter
  • GitHub
  • YouTube

Recent Posts

  • How to install Java (OpenJDK) on Ubuntu Linux
  • How to install Groovy on Ubuntu 20.04 LTS
  • How to Disable selinux in Red Hat or CentOS
  • How to remove date from WordPress Post URL
  • How to install Mariadb 10.4 server on CentOS 8 / RHEL 8

Top Posts & Pages

  • How to delete mail queue in Postfix
  • How to fix read only USB pen drive in Ubuntu
  • How to set hostname and FQDN on CentOS 7 and RHEL 7
  • How to start / stop / restart / reload iptables on CentOS 7 / RHEL 7
  • How to install MySQL Server 5.6 on CentOS 7 / RHEL 7
  • 4 different commands to check the load average in linux
  • How to find absolute path of command on Linux / Unix : which command
  • How to create Jenkins user by command line and GUI
  • How to setup Jenkins Credentials for Git repo access
  • make command not found in linux CentOS Red Hat ubuntu Debian

DevOps Posts

  • vagrant cloud flow

    Install Vagrant on Ubuntu and create first VM

  • git jenkins credential github

    How to setup Jenkins Credentials for Git repo access

  • terraform

    how to install terraform in Linux : CentOS-Ubuntu

  • docker image

    How to create Ubuntu docker base image

  • Install Ansible on Ubuntu / CentOS / RHEL

Footer

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

Sharad Chhetri is an experienced Linux - Cloud Engineer & freelancer. Working on Open Source Technology since RHEL 4.0 (Red Hat Enterprise Linux). He loves sharing the knowledge which earned from real scenarios. Don't be surprised if you find him in technology seminars and meetup groups. You can contact him on email for freelance projects at admin@sharadchhetri.com. Read More…

Tags

Amazon AWS apache automation awk bash script CentOS centos 7 debian devops docker freebsd ftp ghost git grep hostname jenkins kvm linux linux command linux commands MariaDB Server mysql Nagios nginx Octopress owncloud Owncloud 6 php postfix postgres python Red Hat rpm sed selinux ssh swap ubuntu user management vagrant varnish virtualbox vsftp wordpress

Recent Comments

  • Ali on How to delete mail queue in Postfix
  • Mehar on How to install Java (OpenJDK) on Ubuntu Linux
  • Ramone Burrell on How to fix read only USB pen drive in Ubuntu
  • Pera on How to fix read only USB pen drive in Ubuntu
  • Ubuntu on How to fix read only USB pen drive in Ubuntu
  • Nitin Sharma on Install and configure rsyslog Centralized logging server in CentOS 6.5
  • Sharad Chhetri on Install and configure rsyslog Centralized logging server in CentOS 6.5
  • nitin on Install and configure rsyslog Centralized logging server in CentOS 6.5

Copyright © 2009 - 2021 · All Rights Reserved sharadchhetri.com · · Privacy Policy ·
· sitemap.xml · ·The content is copyrighted to sharadchhetri.com and may not be reproduced on other websites without our permission. ·

Copyright © 2021 · Genesis Sample on Genesis Framework · WordPress · Log in