рдЧреНрдиреНрдпреВ/рд▓рд┐рдирдХреНрд╕: рдирд╡реАрди рд╕рд┐рд╕реНрдЯрдо рдХрд╛ рдЕрдкрдбреЗрдЯ рдФрд░ рд╕реЙрдлреНрдЯрд╡реЗрдпрд░ рдореИрдиреЗрдЬрд░

рдЖрдкрдиреЗ рдЧреНрд░рд╛рдлрд┐рдХрд▓ рдпреВрдЬрд░ рдЗрдВрдЯрд░рдлреЗрд╕ рдХрд╛ рдЙрдкрдпреЛрдЧ рдХрд░ рд▓рд┐рдпрд╛ рд╣реИ ред рддреЛ рдЗрд╕рдХреЗ рдмрд╛рдж рдЬреЛ рдкрд╣рд▓рд╛ рдХрд╛рд░реНрдп рд╣реЛрддрд╛ рд╣реИ рд╡рд╣ рд╣реИ рдЕрдкрдиреЗ рд╕рд┐рд╕реНрдЯрдо рдХреЛ рдЕрдкрдбреЗрдЯ рдХрд░рдирд╛ред

How to use regular expressions in Linux?

Regular Expression or regex, as assumed by many, is not a tool or software. Regular expression is a sequence of characters that define a search pattern. This was given back in 1950 by  mathematician Stephen Cole Kleene who then formalized the description of a regular language

Adding multiple users to Linux using BASH

Some or the other time as a sys admin you will come across a need to add multiple users to your Linux system. So the question is how to do the same.

Let us see how we can do the same in this post.

We will assume that N number of users are to be added with a standard prefix or suffix and values incrementing with numbers. e.g.  employee27... emp28.. etc

The command to add a user is useradd

The command can be simply run as:

How to check previous command status in BASH?

BASH is the default shell in GNU/Linux systems.  While writing BASH scripts sometimes it become necessary to take action based upon the success of previous command. So how do we do this.

First we need to understand that almost every command that is run once completed returns a exit code, 99% of commands just use 0 for success, 1 for failure. Without getting into other details, lets see how we can use this value.

Address

OpenSourceCook.in
"Natraj"  Bungalow,
Colony No.7,  Sr.No. 38.
(Lane Behind Sai Baba Mandir)
Kale Borate Nagar, Hadapsar,
Pune - 411028.
Get Directions