System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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

 
SOLVED
Go to solution

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
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