Operating System - Linux
1826422 Members
4112 Online
109692 Solutions
New Discussion

fine and replace /export with /home in /etc/passwd file

 
SOLVED
Go to solution
Techsystemquery
Advisor

fine and replace /export with /home in /etc/passwd file

plz let me know how to replace /export with /home in each occurence in /etc/passwd file
2 REPLIES 2
FLQ
Valued Contributor
Solution

Re: fine and replace /export with /home in /etc/passwd file

HI Techsystemquery,

You can achieve that using "vi /etc/passwd" and type ":%s/export/home/g"

Alexander Chuzhoy
Honored Contributor

Re: fine and replace /export with /home in /etc/passwd file

sed -i s#/export#/home#g /etc/passwd