A Senior Developer working mostly with PHP and JavaScript, with a bit of Python thrown in for good measure, all on Linux. My tooling is simple, it's GitLab and JetBrains where possible.
I'm a huge fan of the (relatively) straight forward find command. When coupled with -exec, you can do some pretty creative things, fairly quickly.
I've used find historically for getting backup files which are more than 2 weeks old, and deleting them. It's a simple way of keeping backups from taking over hard drive space, without needing to do everything manually
A Senior Developer working mostly with PHP and JavaScript, with a bit of Python thrown in for good measure, all on Linux. My tooling is simple, it's GitLab and JetBrains where possible.
Going to be boring and say grep. I think a lot of people have it as a go-to tool to filter the returned output of a command into something useful.
I don't spend a lot of time in the terminal using Linux/Unix specific commands. Most of my time on the terminal is spend using Git, and increasingly more often, redis-cli
Yeah. git grep is super handy to find files with particular snippets of code.
I started with competitive programming recently and I used to save code as filename.py and then testcase_filename for the testcases. ls | grep -v testcase came in handy to code files and clear the noise.
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.
I'm a huge fan of the (relatively) straight forward
find
command. When coupled with-exec
, you can do some pretty creative things, fairly quickly.I've used
find
historically for getting backup files which are more than 2 weeks old, and deleting them. It's a simple way of keeping backups from taking over hard drive space, without needing to do everything manuallyThat coupling with exec takes it to another level. What are your other favourites?
Going to be boring and say
grep
. I think a lot of people have it as a go-to tool to filter the returned output of a command into something useful.I don't spend a lot of time in the terminal using Linux/Unix specific commands. Most of my time on the terminal is spend using Git, and increasingly more often, redis-cli
Yeah.
git grep
is super handy to find files with particular snippets of code.I started with competitive programming recently and I used to save code as filename.py and then testcase_filename for the testcases.
ls | grep -v testcase
came in handy to code files and clear the noise.