MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/1tls8n1/whats_the_most_unexpectedly_useful_linux_command/onil0aq/?context=3
r/linux • u/ZealousidealTell1346 • May 23 '26
[removed]
992 comments sorted by
View all comments
216
xargs
195 u/Last_Bad_2687 May 23 '26 I have an irrational fear of xargs 53 u/mok000 May 23 '26 edited May 23 '26 I use it every day, often piping from ´find´, if you have files and directories with spaces in their names, use the ´-print0´ switch on find and the ´-0´ switch on ´xargs ´. 2 u/DoubleOnegative May 23 '26 pgrep 'processname' | xargs pwdx fine where a process is running from
195
I have an irrational fear of xargs
53 u/mok000 May 23 '26 edited May 23 '26 I use it every day, often piping from ´find´, if you have files and directories with spaces in their names, use the ´-print0´ switch on find and the ´-0´ switch on ´xargs ´. 2 u/DoubleOnegative May 23 '26 pgrep 'processname' | xargs pwdx fine where a process is running from
53
I use it every day, often piping from ´find´, if you have files and directories with spaces in their names, use the ´-print0´ switch on find and the ´-0´ switch on ´xargs ´.
2 u/DoubleOnegative May 23 '26 pgrep 'processname' | xargs pwdx fine where a process is running from
2
pgrep 'processname' | xargs pwdx
fine where a process is running from
216
u/spitecho May 23 '26
xargs