Simple linux command line command to modify an option in a INI like config file

前端 未结 3 1740
北海茫月
北海茫月 2021-02-15 15:03

I am looking for a generic command line solution that would allow me to add or modify a configuration option inside a config file (ini like format).

Most linux configur

3条回答
  •  醉梦人生
    2021-02-15 16:10

    Try crudini. BTW I think this file is a shell file rather than an ini file, but crudini can still work in this case:

    crudini --set /etc/default/nginx '' ULIMIT '"-n 4096"'
    

提交回复
热议问题