Most Popular
1500 questions
107
votes
10 answers
What is the purpose of 'tee'?
All the usages of tee I ever saw were such:
do_something | tee -a logfile
Or:
do_something_else | tee logfile
Is tee invented for those that don't know you can do the same with shell pipe redirections? Such as:
do_something >>…
R Moog
- 1,122
107
votes
3 answers
Deceptive site ahead: unanalytics.com
I am getting strange warning on almost all the websites since morning, including unanalytics.com.
I am pretty much sure that it's a issue in google chrome only. The reason for being sure is, I am getting this on http://localhost too.
I want to know…
Manthan Tripathi
- 877
107
votes
13 answers
What commands can I use to reset and clear my terminal?
I have been using the command:
reset
to clear my terminal. Although I am pretty sure this is not what I should be doing. Reset, as the name suggests, resets your entire terminal (changes lots of stuff). Here is what I want:
I basically want to…
sixtyfootersdude
- 8,449
107
votes
9 answers
Copy files in Linux, avoid the copy if files do exist in destination
I need to copy a /home/user folder from one hard disk to another one. It has 100,000 files and around 10G size.
I use
cp -r /origin /destination
sometimes I get some errors due to broken links, permissions and so on. So I fix the error, and need…
Open the way
- 9,221
106
votes
10 answers
How to change shortcut key for switching between virtual desktops in windows 10 or windows 11?
In linux I use a shortcut to switch between 4 workspaces: win+1/2/3/4.
I would like to have something like this in Windows 10 or Windows 11.
UPDATE SOLUTION
(Step not needed for Windows 11 - only for Window10 users) Update your windows version to…
Dariusz Filipiak
- 1,187
106
votes
9 answers
Display all output but highlight search matches
In bash, if I want to execute a command and only display output lines that matches a certain pattern, I can pipe it to grep, like
file testfile
hello
there
my
friends
command
$ cat testfile | grep 'hello'
hello #this will be highlightd
this will…
ewok
- 4,641
106
votes
6 answers
"reload" mac audio drivers without rebooting
I have an external audio interface (M-audio fast track c400). In order to get my macbook to recognize it (display in audio/midi setup), I have to reboot, which is a hassle. I have had other m-audio interfaces that were automatically detected when…
RyanM
- 1,193
106
votes
6 answers
How do you easily add equation numbers to Microsoft Word 2010 equations?
How do you create equations in Word 2010 that are automatically numbered with the equation number centered vertically on the equation and right justified? While a number of references have discussed the use of three column tables, finding a step by…
R Schultz
- 3,101
106
votes
5 answers
How to chown/chmod all files in current directory?
I am trying to change the ownership and permissions of some files (and directories) in the current directory. I tried this:
chown username:groupname .
...expecting that it would affect all the files in the current directory, but instead only…
Andrew
- 15,494
106
votes
17 answers
Switch between windows on Mac OS X?
On Windows when I do alt+tab I can switch between windows. If I have 5 firefox windows open then using alt+tab will switch between them.
On my MacBook, cmd+tab switches between applications, not windows, so it will switch between firefox and xcode,…
Nir Levy
- 1,600
106
votes
16 answers
How to make Excel's "Auto Fit Row Height" feature actually auto fit the row height?
For every generation of Excel I can remember (including 2010, which I'm using now), Excel's "Auto Size Row" features sometimes fails to actually auto size a row when the cell contains wrapped text. When it works properly, all the text is revealed…
devuxer
- 4,111
106
votes
11 answers
What is the Linux command to find out hardware info?
I need to find out hardware information for the below items under Linux:
CPU (and cores)
CPU speed
Memory
Hard disks
OS version
Any advice?
ddcd
106
votes
4 answers
What is a Codec (e.g. DivX?), and how does it differ from a File Format (e.g. MPG)?
I'm so confused... what is the difference between an audio/video codec (which apparently is a shorthand for "encoder/decoder", kind of like how "modem" is really "modulator/demodulator") and an audio/video format?
(Am I even using the correct…
user541686
- 23,629
106
votes
4 answers
Checking what PHP version I'm running on Linux?
I'm running Centos 5 and I need to know what version of PHP I'm running, is there a command for this which I can run?
Elitmiar
- 3,272
106
votes
7 answers
What happens if mv is interrupted?
What happens if the Linux mv command is interrupted? Say, I'm moving a whole directory to some other place and interrupt it while it's moving. Will the source directory still be untouched?
dehmann
- 2,333