Show which line of a shell script is currently executed

bash -x foo.sh
This way you don't need to replace first line of a bash foo.sh script #!/bin/bash with #!/bin/bash -x to obtain the same effect

-1
By: knoppix5
2020-09-10 19:56:42

What Others Think

I had a lot of new ideas when reading this post, it provided me very useful information. Thanks for this valuable information for all. novel online
samantha · 8 weeks and 4 days ago
If you do not want to simply donate your money to scammers when ordering work in writing service, then pay your attention to the review on the site https://rankmywriter.com/edubirdie-com-review. It would seem obvious, but still many people order works there.
Useynas · 7 weeks and 3 days ago
If you do not want to simply donate your money to scammers when ordering work in writing service, then pay your attention to the review on the site https://rankmywriter.com/edubirdie-com-review. It would seem obvious, but still many people order works there.
Useynas · 7 weeks and 3 days ago
I learned absolutely everything about my question when I read this post, thanks to the author for the detailed description. I wrote my review on the https://ukbestessays.org/ , you can go in and read. Thank you very much for your attention and your time.
Faucher · 7 weeks ago
guitar lessons reno I think I need more information
yeoyeo · 6 weeks and 2 days ago
great help. thanks for this fencingreddingca.com
looneyhans · 4 weeks and 5 days ago
Hey thanks for sharing this post, it helped me a lot while searching for some new things related to coding and stuff for my assignment at Essay Help Online. It would be much appreciated if you will share more content related to this as well.
alicemorgan · 4 weeks and 2 days ago
thanks for this post! bathroomremodelchattanoogatn.com
Killersmile · 4 weeks and 2 days ago
thanks for this life coaching atlanta
looneyhans · 1 week and 4 days ago
How can I determine the name of the Bash script file inside the script itself? commercial painting
philip96 · 1 week and 2 days ago
eyelash extensions glad i found this site!
idasanka · 3 days ago
This is really awesome! i love it couples counseling
idasanka · 1 day ago
Just admiring your work and wondering how you managed this blog so well. It’s so remarkable that I can't afford to not go through this valuable information whenever I surf the internet! find here
bojokey283 · 13 hours ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for:

国产片av在线观看国语_亚洲欧美aⅴ在线资源_亚洲国产综合自在线