Most Popular
1500 questions
209
votes
18 answers
Removing ANSI color codes from text stream
Examining the output from
perl -e 'use Term::ANSIColor; print color "white"; print "ABC\n"; print color "reset";'
in a text editor (e.g., vi) shows the following:
^[[37mABC
^[[0m
How would one remove the ANSI color codes from the output file? I…
user001
- 3,994
209
votes
17 answers
Is it possible to `tail -f` the output of `dmesg`?
I want to do something like
dmesg | tail -f
but it doesn't work:
I use Mac OS X v10.6.7 (Snow Leopard). By doing that, tail will exit, instead of monitoring the output.
I wonder if there is a way to do it, or an equivalent command.
P.S., I don't…
Ivan Xiao
- 2,945
209
votes
5 answers
How to disable internet search results in start menu post Creators Update?
It used to be possible to disable internet search results in start menu searches before the Windows 10 Creators Update, but I've just clean installed a new Windows 10 Pro image and that setting is gone. Is there some way to disable it through…
Drew
- 2,729
208
votes
4 answers
How to install local .deb packages with apt-get
Is there a way to install packages store on your HD with apt-get, like apt-get install ./package.deb?
If not, how to handle the dependencies in a very very easy way?
Louis
- 2,770
208
votes
14 answers
How do I edit text files in the Windows command prompt?
On Unix I'd just use vi, but I don't know what the command is on Windows. I am actually trying to edit files over SSH with Windows Server 2008.
Casebash
- 7,727
207
votes
3 answers
How do I trim a video using Handbrake?
I can't seem to figure out the solution to a very simple problem. I want to trim a video in Handbrake and keep the video as is (resolution, encoding, etc), just chop off the first few seconds, but I can't find out how.
user400424
- 6,294
207
votes
7 answers
Where can I download Windows 7 (legally from Microsoft)?
I just bought a serial for Windows 7 on-line from the Microsoft store (the most painful shopping experience EVER!). I selected that I wanted to download my version of Windows 7 after purchase. After payment, I have listed a Product Key but no…
Luke
- 2,659
207
votes
5 answers
How do you display POST data with cURL?
As an example, POSTing to a web server with the -v argument:
curl -v http://testserver.com/post -d "firstname=john&lastname=doe"
And the output
> POST /post HTTP/1.1
> User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7…
gak
- 9,047
207
votes
4 answers
What are the differences between the rsync delete options?
I see on the rsync man page that there are a number of delete options, but don't really understand the differences between them. What are the differences between these options?
--del an alias for --delete-during
--delete …
Skilldrick
- 2,357
206
votes
11 answers
I accidentally typed password into bash command line
I accidentally typed my password into bash command line, mistaking the Last login: ... line for Wrong password (I was in a hurry). What do I do to cover my trace?
What I did was editing .bash_history and deleting the offending line (had to relogin…
MaDa
- 2,013
- 3
- 14
- 11
206
votes
15 answers
"This file came from another computer..." - how can I unblock all the files in a folder without having to unblock them individually?
Windows XP SP2 and Windows Vista have this deal where zone information is preserved in downloaded files to NTFS partitions, such that it blocks certain files in certain applications until you "unblock" the files.
So for example if you download a zip…
Tom Kidd
- 1,627
206
votes
8 answers
Find outdated/updatable pip packages
pip freeze shows me the packages installed, but how do I check against pypi which ones are outdated?
Xster
- 3,025
206
votes
10 answers
Keyboard shortcut to unhide or unminimize a window in OS X
I know how to Hide (Cmd+H) or Minimize (Cmd+M) a focused window in OS X, but I can't find a keyboard shortcut or even a menu item to restore, unhide, unminimize, or otherwise show a window that I've hidden or minimized.
Anyone have a suggestion?
brandonjp
- 2,375
205
votes
8 answers
Where should the .vimrc file be located on Windows 7?
I recently installed vim on Windows 7 as a stand-alone binary.
Where should I put my .vimrc file?
AJ.
- 4,069
205
votes
9 answers
Why does terminal say: "You have mail"?
Any idea why my Mac terminal says:
You have mail in /var/mail/lofye
How can I make it stop saying that every time I open terminal?
lo_fye
- 2,391