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 · 11 weeks and 6 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 · 10 weeks and 5 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 · 10 weeks and 5 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 · 10 weeks and 2 days ago
guitar lessons reno I think I need more information
yeoyeo · 9 weeks and 4 days ago
great help. thanks for this fencingreddingca.com
looneyhans · 8 weeks 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 · 7 weeks and 4 days ago
thanks for this post! bathroomremodelchattanoogatn.com
Killersmile · 7 weeks and 4 days ago
thanks for this life coaching atlanta
looneyhans · 4 weeks and 6 days ago
How can I determine the name of the Bash script file inside the script itself? commercial painting
philip96 · 4 weeks and 4 days ago
eyelash extensions glad i found this site!
idasanka · 3 weeks and 4 days ago
This is really awesome! i love it couples counseling
idasanka · 3 weeks and 3 days 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" rel="nofollow">http://libjournal.uncg.edu/ap/user/viewPublicProfile/5446'>find here
bojokey283 · 3 weeks and 2 days ago
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don’t know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often. read more http://libjournal.uncg.edu/ap/user/viewPublicProfile/5446
xoheko1229 · 2 weeks and 6 days ago
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. http://libjournal.uncg.edu/ap/user/viewPublicProfile/5446">Click here
xoheko1229 · 2 weeks and 6 days ago
Very good points you wrote here..Great stuff...I think you've made some truly interesting points.Keep up the good work. Click here http://libjournal.uncg.edu/ap/user/viewPublicProfile/5446
xoheko1229 · 2 weeks and 6 days ago
slope unblockedWow, this is very interesting reading. I found a lot of things which I need. Great job on this content. This is very interesting reading. Great job on this content. I like itcookie clicker
kittydurgans · 2 weeks and 1 day ago
Thank you for the great comments, I look forward to more support from the forums but our helpful website and run 3 is the best site you should use.
yisoo · 2 weeks ago
I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. forex trading for beginners
bojokey283 · 1 week and 6 days ago
hearing aids sioux falls I got lost good thing I found this site!
yeoyeo · 1 week and 5 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. covid playa del carmen
bojokey283 · 1 week and 5 days ago
Thank you for this helpful advice https://tetrisgame.online
LidaKieu · 1 week ago
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. online marketing
bojokey283 · 6 days ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. rubbish removal bridgend
bojokey283 · 6 days ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. taco catering las vegas
bojokey283 · 5 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. buy targeted traffic
bojokey283 · 2 days ago
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. Turmeric powder
bojokey283 · 16 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: