Skip to content

Instantly share code, notes, and snippets.

@SantoshCode
Created November 10, 2021 18:22
Show Gist options
  • Save SantoshCode/a9a83737a1aef231fc52cbc5efd03fb2 to your computer and use it in GitHub Desktop.
Save SantoshCode/a9a83737a1aef231fc52cbc5efd03fb2 to your computer and use it in GitHub Desktop.
Appending text to a file in linux

Appending text to a file in linux

$ echo NEW_USER=santosh >> .bashrc

Overriding all text inside a file

This command will override everything from .bashrc with newtextblahblah

$ echo newtextblahblah > .bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment