Sysadmin Blog
Linux notes
Friday, September 20, 2013
Linux sed example - find a replace string in /etc/fstab. Changing "sdb1" to "VolGroup00/local"
for i in `cat lists/dblist`; do ssh -t $i "sudo sed -i 's/sdb1/VolGroup00\/local/' /etc/fstab"; done
Linux parted from command line. Remove partition number 1 on sdb.
parted -s /dev/sdb -- rm 1
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment