Friday, April 26, 2013

Before understanding the difference between soft link and hard link, we need to understand the concept of soft link and hard link as well as concept of Inode in unix file system. Actually, link concept originated to replicate the file at different location without copying it and it is based on file system. File System is closely related withinode which is unique in system. How to create Soft Link in Linux? We will create soft link as well as hard link in two examples and then we will check for difference. root@hello:~/ctier/shellscript# ...
Posted by Machindra Dharmadhikari On 4/26/2013 10:03:00 AM No comments READ FULL POST
Advanced use of sed command in Linux                              mpstat command to check cpu usage Inode in file system is a fundamental concept of unix file system and each object in the file system represented by an inode. Inodes store information about files and directories like ownership, access mode, file type etc. Each file is having unique inode. When we copy file from one location to other that time new inode number assigned to the new file. If...
Posted by Machindra Dharmadhikari On 4/26/2013 10:01:00 AM No comments READ FULL POST

Wednesday, April 24, 2013

How to provide expiry date to user                                         How to change login shell of user We will go through the examples of Sed substitution using regular expression as follows. Sed command in unix examples, we have given as follows. For all examples, we will consider one file as an input and get desired output from that file. i.e. employee.txt root@rhel:~/test# cat employee.txt 1001,Ajay,Manager,25000 101,Satish,Founder,30000 302,Atul,CEO,26000 434,Raj,Senior...
Posted by Machindra Dharmadhikari On 4/24/2013 08:41:00 AM 1 comment READ FULL POST

Wednesday, April 17, 2013

Useradd command examples                                                 usermod command examples Groupadd command is used to create a new group account using the specified values with options or default values from the system. All information related to the group added into the system files as needed. There are many options present in group add command to change account settings of group. We will understand all major...
Posted by Machindra Dharmadhikari On 4/17/2013 09:14:00 PM 2 comments READ FULL POST
How to Remove HTML tags from HTML file using sed  Command Usermod command is used to modify user account. This command is useful to change the parameters of only existing users. It can change home directory of existing user, login name, login shell, comment of passwd file etc. We will understand usermod command with examples: How to change home directory of existing user? Sometimes we need to change user’s home directory with new directory but all content of old directory should have to move new directory. In this case, we need...
Posted by Machindra Dharmadhikari On 4/17/2013 08:20:00 PM No comments READ FULL POST

Tuesday, April 16, 2013

Change Properties of Existing user                                         Groupadd/Groupdel command Useradd command is very useful in unix to add user or update the user’s information or user’s home directory, comment etc. Almost all options are same for useradd command in solaris/Linux/Ubuntu. There are many uses of useradd command. We will understand the useradd command with examples: Add user with home directory: If you are not...
Posted by Machindra Dharmadhikari On 4/16/2013 11:14:00 PM 1 comment READ FULL POST
  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube

    Chitika Ads 2

    Histat

    About

    Enter your email address:

    Delivered by FeedBurner