Showing posts with label unix commands. Show all posts
Showing posts with label unix commands. Show all posts

Shells: What is grep


From my last post [ link ], some of you may noted the use of grep command, I used for process search. grep is a Unix command that allows you to search for a pattern in a list of files [ man Page ]. We are going to test usage with /etc/passwd file.


The passwd file is used for storing encrypted-passwords for the users. Without a passwd file no one can able to login again. So it is better to make a copy of it before we accidentally delete or edit the file, even we are not intended to do so.

Shells: Search Processes


Motive: My aim is to check the process and also have the facility for search string and getting details about running services.



As I need to check it regularly, so I created a shell script for check that.

Shells: AUTO LOGOFF of idle users


I set up an Ubuntu 9.04 Server fordevelopment purpose and made it online through dyndns [more info], It can access by anyone of our team. We got some accessing problem because all our developers logged in through ssh without any need. So there are many users logged in and stay idle.


What we need to increase the efficiency is to force all idle users out. Here how I do this:


THIS IS BASED ON UBUNTU SERVER EDITION 9.04


Shells: 01- Introduction - Linux Commands

Shell Scripts are the main feature of linux distributions.

Lets know what wikepedia defined about shell scripts[wikipedia page]. Before starting shell script we must learn some important linux/unix commands which makes wonder with shell scripting.