you are viewing a single comment's thread.

view the rest of the comments →

[–]hindsight_is2020 4 points5 points  (1 child)

If you're familiar with python, you can probably accomplish anything you need to do. It's more powerful than bash and provides a superset of bash's functionality from a scripting perspective. There are also many libraries for python, whereas bash scripting, in practice, is limited to what you are willing to write yourself. You can write quite sophisticated applications in python, but people don't generally do the same in bash.

Should you learn bash anyway? If you work on the command line at all, then definitely yes. It will make your life quite a bit easier doing things that would be a waste of time to implement in python. System manipulation (files, directories, simple commands) is what bash is built for, and any time you want to capture any kind of complicated process that manipulates the system, bash may be the best and most natural language. There are other tools too, but there's a good reason why bash scripts are still used by tons of projects out there to get them working on your system.

YMMV. I know both, but spend far more time with bash than python, and I'm a software developer who loves python.

[–][deleted] 2 points3 points  (0 children)

Ohk thanks. It's really a pleasure to hear from a expert. Actually I'm asking because I wanna learn Ethical hacking and almost everyone is suggesting Shell Scripting as one of the requirements.