icons on gnome desktop

Enable trash icon on gnome desktop

gsettings set org.gnome.nautilus.desktop trash-icon-visible true

Enable network icon on gnome desktop

gsettings set org.gnome.nautilus.desktop network-icon-visible true

Enable home icon on gnome desktop

gsettings set org.gnome.nautilus.desktop home-icon-visible true

replace field on certain line with awk

Replace second field in line that start with root string

awk -F':' '/^root/{sub($2, "abc")}1' /etc/passwd
awk -F':' '/^root/{sub($2, "abc"); print}' /etc/passwd
awk -F':' '/^root/{sub($2, "abc")}1' /etc/passwd > newFile
awk -F':' '/^root/{sub($2, "abc")}/^root/' /etc/passwd >> newFile

Replace second field in line that have root string in first field

awk -F':' '$1~"root"{sub($2, "abc")}1' /etc/passwd
awk -F':' '$1~"root"{sub($2, "abc"); print}' /etc/passwd