I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
You shouldn't need to run anything with sudo for this kind of purpose.
I'd like to point out that "source lines of code" is a very dodgy metric to use for anything. It depends entirely on things like the language you use and the formatting you use and the sloc algorithm your software is using to measure things. Not only that, but the number of lines you've written rarely has anything to do with how much work you've done, how much progress a project has made or how many features have been completed.
It's probably useful if you want a summary of how much has changed since a previous date, but you can get that using a diff in your VCS. For instance, git diff --name-only old-version-tag is likely to give you something that's of more practical use than knowing your code includes 143 block comments.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You shouldn't need to run anything with
sudo
for this kind of purpose.I'd like to point out that "source lines of code" is a very dodgy metric to use for anything. It depends entirely on things like the language you use and the formatting you use and the sloc algorithm your software is using to measure things. Not only that, but the number of lines you've written rarely has anything to do with how much work you've done, how much progress a project has made or how many features have been completed.
It's probably useful if you want a summary of how much has changed since a previous date, but you can get that using a diff in your VCS. For instance,
git diff --name-only old-version-tag
is likely to give you something that's of more practical use than knowing your code includes 143 block comments.