cm0002@literature.cafe to Linux@programming.dev · 18 hours agoWhat are some of your most useful or favorite terminal commands?message-squaremessage-square27fedilinkarrow-up128arrow-down13file-text
arrow-up125arrow-down1message-squareWhat are some of your most useful or favorite terminal commands?cm0002@literature.cafe to Linux@programming.dev · 18 hours agomessage-square27fedilinkfile-text
minus-square[object Object]@sh.itjust.workslinkfedilinkEnglisharrow-up14·edit-218 hours agoI have a script named d in my PATH and it contains this: ("$@" > /dev/null 2>&1 &) It allows me to run any program in a fully detached state in a way that works even if the terminal that started the program closes, and it’s as simple as d <command>.
minus-squareGobbel2000@programming.devlinkfedilinkarrow-up1·40 minutes agoHow does this even work? I get the redirection part, but how is the command executed in a detached state?
minus-squareredjard@lemmy.dbzer0.comlinkfedilinkarrow-up5·14 hours agogood idea, I’ve been manually typing out variations of this as needed for years.
I have a script named
din my PATH and it contains this:("$@" > /dev/null 2>&1 &)It allows me to run any program in a fully detached state in a way that works even if the terminal that started the program closes, and it’s as simple as
d <command>.How does this even work? I get the redirection part, but how is the command executed in a detached state?
good idea, I’ve been manually typing out variations of this as needed for years.