Most Popular
1500 questions
607
votes
13 answers
Can I make cURL fail with an exitCode different than 0 if the HTTP status code is not 200?
I was always assuming that when curl got an HTTP 500 response it was returning an exit code that meant failure (!= 0), but that seems to be not the case.
Is there a way I can I make cURL fail with an exitCode different than 0 if the HTTP status code…
knocte
- 6,381
607
votes
11 answers
From a quality perspective, what is better: turning volume up in the software, in the OS, or on the speakers?
If music isn't loud enough, how do I get the best quality (even if the difference is in fact so small it's negligible)?
By making the music louder in my music player, game or other sound-producing software program?
By raising the volume at the…
Qqwy
- 4,457
- 3
- 18
- 19
604
votes
12 answers
Automatically answer 'Yes' when using apt-get install
Is there a way to make apt-get install automatically choose "yes" upon the Do you want to continue [y/N]? confirmation dialog?
mistiry
- 7,037
604
votes
5 answers
How do you reload your .vimrc file without restarting vim?
Can you edit your .vimrc file and reload it without having to restart Vim?
ivo
- 6,151
- 3
- 18
- 5
597
votes
3 answers
"directory junction" vs "directory symbolic link"?
In the context of NTFS:
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link …
Pacerier
- 28,143
597
votes
16 answers
Reload a Linux user's group assignments without logging out
When assigning a user's secondary group list using:
# usermod -G
is it possible to force this group assignment to take effect without logging out all running sessions?
This would be very useful in the situation where a Screen…
Simon
- 6,462
593
votes
5 answers
How do I run multiple commands on one line in PowerShell?
In a cmd prompt, you can run two commands on one line like so:
ipconfig /release & ipconfig /renew
When I run this command in PowerShell, I get:
Ampersand not allowed. The `&` operator is reserved for future use
Does PowerShell have an operator…
David
- 9,854
592
votes
7 answers
What is the "You have new mail" message in Linux/UNIX?
Sometimes, when I log into a box and 'su' to root, I get a cute little message saying I have mail (thank GOD it's not AOL).
Where is this mail?
What does it contain?
Who/What sent it?
How important is it?
Is this even actual "mail" in the same…
nopcorn
- 16,982
588
votes
5 answers
How to turn off word wrap in less?
Short version:
How can I make the less utility in Linux not wrap lines?
Long version:
Often I need to view huge CSV files using less with hundreds of columns. I frequently only care about the first couple columns. However, word wrap causes one…
User1
- 9,701
572
votes
6 answers
Difference between .bashrc and .bash_profile?
What's the difference between .bashrc and .bash_profile and which one should I use?
cfischer
- 9,163
568
votes
14 answers
How do I make rm not give an error if a file doesn't exist?
I'm writing a makefile that will clean up some useless files at the end of the compilation. If a target has already been made, it will of course skip that target and the useless file may not be there. So if I do this:
rm lexer.ml interpparse.ml…
Jason Baker
- 8,932
565
votes
6 answers
Remove audio from video file with FFmpeg
How can I strip the audio track out of a video file with FFmpeg?
TeAmEr
- 5,897
561
votes
13 answers
Windows 7 SP1 Windows Update stuck checking for updates
I installed Windows 7 fresh and installed SP1. Now, when I try to check manually for Windows Updates it just hangs on the Checking for updates screen.
I tried running the tools in How do I reset Windows Update components?, but this did not fix the…
Mikey A. Leonetti
- 6,113
556
votes
9 answers
How to remove systemd services
If I install a new service then decide I don’t want that application anymore and delete it, the service is still listed in the output from systemctl as error.
Where is this coming from and how can I remove them thoroughly?
eMeL
- 5,661
553
votes
7 answers
How to decompress a .bz2 file
I have a file called filename.bz2 that I need to decompress.
I have tried the command tar xvjf filename.tar.bz2, but it didn't work as the file is not a tar file.
How do I decompress this file?
Jury A
- 5,675