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 · 5 weeks and 2 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 · 4 weeks 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 · 4 weeks 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 · 3 weeks and 4 days ago
guitar lessons reno I think I need more information
yeoyeo · 3 weeks ago
great help. thanks for this fencingreddingca.com
looneyhans · 1 week and 3 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 · 1 week ago
thanks for this post! bathroomremodelchattanoogatn.com
Killersmile · 1 week 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: