<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _edit_linux_cmdline(cmdline, state, name, value=None):
 """ Return a new Linux command line, with parameter `name` added, replaced, or removed. """

    kv = _parse_linux_cmdline(cmdline)
    if state == 'absent':
        try:
            del kv[name]
        except KeyError:
            pass
    elif state == 'present':
        kv[name] = value
    return _assemble_linux_cmdline(kv)