I have the following command that works great:
sudo lsof -w -c smbd -u myuser | grep '.txt'
I just want to get the full path to the file name part of the returned output, the "NAME" column, to put in a report. What is the easiest way to just grab the NAME column?
Asked by NewToLinux
Jan 9, 2022, 05:28 AM
Last activity: May 7, 2024, 03:01 PM
Last activity: May 7, 2024, 03:01 PM