
How do I add text to the beginning of a file in Bash?
Feb 17, 2011 · Hi I want to prepend text to a file. For example I want to add tasks to the beginning of a todo.txt file. I am aware of echo 'task goes here' >> todo.txt but that adds the line to the end o...
http - Wget HEAD request? - Super User
Oct 9, 2010 · There isn't any need for curl. With Wget, adding --spider implies that you want to send a HEAD request (as opposed to GET or POST). This is a great minimalistic way of checking if a URL …
windows 7 - What folder are installation logs in? - Super User
Jun 3, 2013 · If an installer stores a log of the installation process, where would I find that log? If there is an installer that does not log the installation process, how can I make it do so?
How to recursively chmod all directories except files?
Jan 6, 2010 · How to chmod 755 all directories but not files (recursively)? Inversely, how to chmod only files (recursively) but no directories?
Overcoming the 1024 character limit with setx - Super User
Feb 9, 2012 · Yes, a reboot is required. setx edits the registry as I indicated, then broadcasts a WM_SETTINGCHANGE message. This tells all top-level windows that a system setting has changed …
Show tabs in Chrome full screen mode? - Super User
Sep 5, 2010 · I tried a lot, and evenually choose Vimium in Chrome Extension. After enable full screen, you can use shift + t and tab to search through your open tab. If you are editing, just type ctrl + [ to …
How do I join two worksheets in Excel as I would in SQL?
I have two worksheets in two different Excel files. They both contain a list of names, id numbers, and associated data. One is a master list that includes general demographic fields, and the other ...
No internet connection inside Docker containers - Super User
Oct 3, 2016 · I cannot execute any command requiring internet connection inside any Docker container. Works: docker run ubuntu /bin/echo 'Hello world' Does not work: docker run ubuntu apt-get update …
Remove a certain line from Bash history file - Super User
Jan 31, 2012 · You can achieve removal from the history file using the commandline in two steps: Typing history -d <line_number> deletes a specified line from the history in memory. Typing history -w writes …
How do you add a certificate authority (CA) to Ubuntu?
Jun 15, 2012 · It is actually good to complement with @missmah's answer: After copying the certificates into /usr/share/ca-certificates you can execute sudo dpkg-reconfigure ca-certificates so you don't …