Most Popular
1500 questions
261
votes
5 answers
How to reinstall a package using 'apt-get'?
It seems that my aptitude is somehow broken:
sudo aptitude update
0% [Working]Segmentation fault
dmesg
[223282.616599] aptitude[30972]: segfault at 67707f ip 7f954dcfae5d sp 7ffff5a5f950 error 4 in…
Vokuhila-Oliba
- 4,237
260
votes
35 answers
Is there a way to display a countdown or stopwatch timer in a terminal?
How can I display a real-time countdown timer on the Linux terminal? Is there an existing app or, even better, a one liner to do this?
tir38
- 2,841
259
votes
10 answers
Mac OS X: Best Way to Make an ISO from a CD or DVD
Both command-line and screen-oriented pointers appreciated!
update:
I verified the disk utility, hdiutil, and dd methods. dd seems the fastest, 30 minutes on my macbook pro vs. 40 minutes for hdiutil. I was able to simplify dd to use just if= and…
Mark Harrison
- 1,092
259
votes
8 answers
What do the parentheses and number after a Unix command or C function mean?
I keep seeing parentheses and a number after a command in Unix or Linux or C function.
For example: man(8), ftok(2), mount(8), etc.
What do these mean? I see them in man too.
Malfist
- 3,119
258
votes
4 answers
How to convert .ppk key to OpenSSH key under Linux?
I know that is possible to convert .ppk under puttygen in Windows, but how to do that on Linux? Is this possible ?
marioosh
- 3,651
258
votes
10 answers
How can I avoid SSH's host verification for known hosts?
I get the following prompt everytime I try to connect a server using SSH. I type "yes", but is there a way to aovid this?
The authenticity of host '111.222.333.444 (111.222.333.444)' can't be established.
RSA key fingerprint is…
shantanuo
- 2,883
257
votes
7 answers
Change git init default branch name
I'm trying to figure out how to make git init use a different default branch name other than master for the first commit, but I can't find a git config for it or anything that'd allow me to do this (e.g. aliases only work for commands, not branch…
SoniEx2
- 2,907
257
votes
7 answers
Linux - How to recursively chmod a folder?
How can I recursively chmod everything inside of a folder?
e.g. I have a folder called var which contains many subfolders and files.
How can I apply chmod 755 recursively to this folder and all its contents?
Black
- 8,671
255
votes
13 answers
How to search inside files on Windows 7?
In Windows XP we can search for files that contain a defined keyword (inside all files types).
Windows 7 can look inside files for a keyword, but only for text files. (*.doc, *.txt, *.inf, ...), not (*.conf, *.dat, *.*, ...).
Microsoft search…
user8228
255
votes
8 answers
How to make an SSH tunnel publicly accessible?
Referring back to this question, I am executing the below via OpenSSH (Client: Mac OS X 10.6 | Server: Linux Mint), however the port that is being tunneled is not working publicly:
ssh -R 8080:localhost:80 -N root@example.com
The purpose is so the…
Trevor Rudolph
- 2,691
255
votes
4 answers
Connect to the host machine from a VirtualBox guest OS?
I'd essentially like to access my host computer from the guest in VirtualBox. Is there an IP address given for my host which I can use from the guest? Are there extra steps required to set this up? I'd like to access my host's Apache, FTP, and SSH…
Naftuli Kay
- 9,791
255
votes
32 answers
Windows equivalent of the Linux command 'touch'?
What do you use when you want to update the date-modified field of a file on Windows?
commands accessible via C++, .NET, C#, or something native to Windows (Vista preferably)
tools/applications preferably free, and if possible open source as…
facepalmd
- 664
254
votes
8 answers
Way to avoid ssh connection timeout & freezing of GNOME Terminal
When I connect via ssh to certain servers, it timeouts and "freezes" the terminal (doesn't accept input, doesn't disconnect, can't Ctrl-C to kill the ssh process or anything).
This is in Ubuntu's gnome-terminal though it seems to be pausing the…
Kzqai
- 2,878
254
votes
9 answers
How can I direct a query to specific DNS server?
I would like to issue a query to a specific DNS server, whose IP address I know. It doesn't really matter if it's on Windows or *nix.
In Windows I can do something like:
C:\Documents and Settings\Anton Daneyko>nslookup superuser.com
Server: …
Anton Daneyko
- 2,863
254
votes
12 answers
What to do when Ctrl + C can't kill a process?
Ctrl + C doesn't always work to kill the current process (for instance, if that process is busy in certain network operations). In that case, you just see "^C" by your cursor and can't do much else.
What's the easiest way to force that process to…
Dustin Boswell
- 2,651