Write shell script without opening an editor

sudo su -c “echo -e \”\x23\x21/usr/bin/sudo /bin/bash\napt-get -y \x24\x40\” > /usr/bin/apt-yes”
In this example, I’m creating a wrapper for apt-get that assumes yes every time — but the command could be anything.

2019-09-19 16:28:33

What Others Think

In truth, they deserve it like no one else, with their scientific works. I could see these only when I ordered them after reading edusson.com reviews I never used any resource until I read the review about it, and on the site, they are really very convenient. And now I understand that Edusson.com reviews is that resource that you should use
Curtisss11 · 5 weeks and 6 days ago
For me, writing an essay is as difficult a process as writing something related to programming. I can’t millet collect all my thoughts in my head to get one whole idea in my essay. It helped me to fit everything into an ideal weblink where I take an essay on the subject of literature. This will help just as it helped me in due time.
CharlesFletcher · 5 weeks and 5 days ago
It's not an easy process to create any kind of material, especially an essay, article, or script. I am convinced by my own experience. But I recently used best essay writing services and found that I could save time by paying a certain amount, resulting in great material and everyone is happy. Don't delay and order now! Goooo!)
HarrisonFinney · 3 weeks and 4 days 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: