Most Popular
1500 questions
573
votes
9 answers
Using ffmpeg to cut up video
I am using ffmpeg to cut out a section of a large file like this:
ffmpeg -i input.wmv -ss 60 -t 60 -acodec copy -vcodec copy output.wmv
The -ss part works fine but the -t is ignored. It correctly removes the initial specified seconds specified with…
![](./users/profiles/36320.webp)
Neil
- 5,859
- 3
- 16
- 3
571
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?
![](./users/profiles/41978.webp)
mistiry
- 6,687
- 4
- 19
- 16
569
votes
17 answers
When reading a file with `less` or `more`, how can I get the content in colors?
When I read a file in Linux with the command less or more, how can I get the content in colors?
![](./users/profiles/10826.webp)
Open the way
- 8,283
- 13
- 49
- 69
563
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…
![](./users/profiles/73609.webp)
n0pe
- 16,472
- 18
- 71
- 102
562
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…
![](./users/profiles/394029.webp)
Mikey A. Leonetti
- 6,123
- 3
- 15
- 15
557
votes
6 answers
Difference between .bashrc and .bash_profile
What's the difference between .bashrc and .bash_profile and which one should I use?
![](./users/profiles/12461.webp)
cfischer
- 8,973
- 11
- 37
- 42
554
votes
4 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…
![](./users/profiles/15291.webp)
User1
- 9,112
- 8
- 35
- 46
551
votes
4 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 …
![](./users/profiles/78897.webp)
Pacerier
- 26,733
- 82
- 197
- 273
547
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…
![](./users/profiles/48912.webp)
Simon
- 5,962
- 3
- 16
- 13
533
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…
![](./users/profiles/167403.webp)
David
- 9,144
- 3
- 24
- 41
527
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…
![](./users/profiles/1987.webp)
Jason Baker
- 8,382
- 9
- 34
- 50
521
votes
11 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…
![](./users/profiles/186784.webp)
knocte
- 5,481
- 2
- 15
- 19
516
votes
6 answers
How to decompress a .bz2 file
I have a file as: filename.bz2 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?
![](./users/profiles/151697.webp)
Jury A
- 5,305
- 2
- 14
- 5
515
votes
12 answers
Create/rename a file/folder that begins with a dot in Windows?
Many programs needs folder names that starts with a dot, like .emacs.d, .gimp-2.2, .jedit etc. How do I create such a folder?
When using the Windows Explorer in Windows 2000 (and other versions), I get an error message saying "You have to enter a…
Adventure10
512
votes
14 answers
How to fix warning about ECDSA host key
I'm trying to setup password-less SSH on an Ubuntu server with ssh-copy-id myuser@myserver, but I'm getting the error:
Warning: the ECDSA host key for 'myserver' differs from the key for the IP address '192.168.1.123'
What's causing this, and how…
![](./users/profiles/35806.webp)
Cerin
- 8,746
- 16
- 54
- 65