Sample Header Ad - 728x90

pkexec with >> directing output to file

1 vote
1 answer
377 views
If I try pkexec echo -e '\nwl2k something\n' >> /etc/ax25/axports in terminal to have a user add a line to a file, I get a bash: /etc/ax25/axports: Permission denied How do I make it so the whole command goes to pkexec - that is, ask user for sudo to make the change?
Asked by NoBugs (66 rep)
Jan 26, 2022, 04:46 AM
Last activity: Jan 26, 2022, 07:20 PM