Most Popular

1500 questions
90
votes
1 answer

Undo OS X terminal window split

I constantly split my terminal windows accidentally by pressing Cmd+D (it's so close to Cmd+F). I have no idea how to undo this. Any ideas?
Peter Berg
  • 1,045
  • 1
  • 8
  • 6
90
votes
7 answers

How can I hide the most visited sites on Chrome?

Since the last update it has been impossible to hide the most visited sites. I don't know if it's some temporary sick joke by the chrome team but I need to remove it. I have tried changing my home to something other website, this works for when you…
code511788465541441
  • 986
  • 1
  • 6
  • 11
90
votes
8 answers

"FATAL: lock file "postmaster.pid" already exists"

I just reinstalled postgres via brew install postgres I ran initdb /usr/local/var/postgres -E utf8 but got this: The files belonging to this database system will be owned by user "atal421". This user must also own the server process. The database…
AdamT
  • 1,063
  • 1
  • 9
  • 9
90
votes
8 answers

How can I find the oldest file in a directory tree

I'm looking for a shell one-liner to find the oldest file in a directory tree.
Marius Gedminas
  • 2,050
  • 1
  • 15
  • 15
90
votes
9 answers

UDP traffic through SSH tunnel

The title pretty much sums it up. I would like to send UDP traffic through a SSH tunnel. Specifically, I need to be able to send UDP packets through the tunnel and have the server be able to send them back to me on the other side. I know how to…
heavyd
  • 61,031
  • 17
  • 150
  • 172
90
votes
2 answers

How to rehash executables in $PATH with bash

The subject says it all, how to rehash the available executables available within one of the $PATHs after having changed things: e.g. removed a binary from one $PATH which is available in another $PATH, changed the $PATH-variable.
Patrick B.
  • 2,598
  • 2
  • 16
  • 18
90
votes
4 answers

How can I create a URL shortcut in Chrome?

I'm not sure if this is possible, but I want to type in foo, hit enter, and be directed to bar.com.
hookedonwinter
  • 1,067
  • 1
  • 8
  • 9
90
votes
11 answers

Can one take a partial screen shot in Windows 7?

One can take a screen shot of a part of the screen on a Mac with Cmd + Shift + 4. Is there a similar functionality in Windows 7?
David Faux
  • 4,699
  • 25
  • 54
  • 71
90
votes
11 answers

Overcoming the 1024 character limit with setx

I am trying to set environment variables using the setx command, such as follows setx PATH "f:\common tools\git\bin;f:\common tools\python\app;f:\common tools\python\app\scripts;f:\common …
Madhur Ahuja
  • 1,847
  • 5
  • 21
  • 24
90
votes
9 answers

How can I wipe a broken hard disk drive before sending it back to the manufacturer for maintenance?

The hard drive of my laptop died, the manufacturer wants me to send it so that they can investigate, but I'm concerned that the drive might contain sensitive information. When I say the drive is broken, the drive won't be recognized by my OS…
Brann
  • 1,375
  • 2
  • 13
  • 20
90
votes
8 answers

How to find uptime of a linux process

How do I find the uptime of a given linux process. ps aux | grep gedit | grep -v grep gives me a whole lot of information which includes the time at which the process was started. I am specifically looking for switch which returns the uptime of a…
Mahadevan Sreenivasan
  • 1,003
  • 1
  • 8
  • 6
90
votes
5 answers

Where is the temporary directory in Linux?

Does Linux have a standard temporary directory for general use, like Windows's C:\Temp folder? If so, where is it located? I found an SO question about finding a tmp directory programmatically, but I want to set a temp location in an XML config file…
Pops
  • 8,213
  • 28
  • 75
  • 94
90
votes
11 answers

Use VPN connection only for selected applications

I have access to a VPN and want to use it only for some applications, not all. For example: If I connect to a VPN I want only the applications Opera and Newsbin to use that VPN connection. All other applications, like f.e. Outlook, should use the…
user18861
90
votes
6 answers

How is the capacity of a harddisk faked?

I was reading about magical Chinese drives. How would this be done? The post talks about a 'looped mode' and comments suggest having a different controller to lie to the OS. I went and bought one of these devices, tried it and it worked as…
Rohan Monga
  • 913
  • 1
  • 6
  • 13
90
votes
12 answers

Windows equivalent to UNIX "time" command

So, Unix has a time command that lets users time their code/other things. I was wondering if the Windows command line has anything similar. Also, I asked a previous question regarding the Linux command line here. Can we do the same for Windows? If…
efficiencyIsBliss
  • 2,249
  • 4
  • 20
  • 14