1093

Terminal > Windows Registry.

you are viewing a single comment's thread
view the rest of the comments
[-] dezmd@lemmy.world 4 points 4 months ago

What if I told you you can make a backup of a config file and edit a single line in a conf file, all with a single line of bash?

sudo cp config.conf config.conf.bak.$(date +"%Y%m%d%H%M%S") && sed -i 's/^\(CONFIG_NAME\s*=\s*\).*/\1new_value/' config.conf

this post was submitted on 14 May 2024
1093 points (97.7% liked)

linuxmemes

20707 readers
1637 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS