Most Popular

1500 questions
553
votes
5 answers

How to find a directory on linux?

I have a VPS with Suse Linux 10.3. I've logged in via SSH/putty and am trying to find where my web files are located. Since I'm uploading via FTP in a directory called httpdocs, I assume that this directory exists somewhere. My google searches have…
Edward Tanguay
  • 13,265
  • 36
  • 101
  • 127
548
votes
8 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…
Neil
  • 5,609
  • 3
  • 15
  • 3
543
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
  • 8,823
  • 11
  • 35
  • 42
539
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…
n0pe
  • 16,022
  • 18
  • 69
  • 101
533
votes
12 answers

Automatically answer 'Yes' when using apt-get install

Is there a way to make apt-get install answer "yes" to the "Do you want to continue [y/N]?"?
mistiry
  • 6,307
  • 4
  • 18
  • 16
532
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?
Open the way
  • 7,723
  • 13
  • 46
  • 68
531
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…
User1
  • 8,742
  • 8
  • 34
  • 46
521
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
  • 25,880
  • 80
  • 191
  • 270
519
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
  • 5,682
  • 3
  • 16
  • 13
511
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
507
votes
9 answers

Did I just get hacked?

I am developing a consumer product, and it is supposed to be connected to the Internet, so as expected, it is connected to the Internet so that I can properly develop it. I went away for an hour or two, and when I came back to my office I noticed…
vaid
  • 3,519
  • 4
  • 15
  • 18
506
votes
7 answers

How does a computer restart itself?

How can a computer restart itself? After it's off, how does it tell itself to come back on again? What kind of software is it that can do this?
Seth Carnegie
  • 4,159
  • 3
  • 15
  • 13
496
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?
Jury A
  • 5,105
  • 2
  • 13
  • 5
496
votes
17 answers

Is there any 'sudo' command for Windows?

I always work on a non-administrator account on my Windows computer. Sometimes I need to install programs which requires administrator access. As I mostly use the Windows command prompt, is there a Windows command to escalate privileges, similar to…
ukanth
  • 10,470
  • 11
  • 42
  • 60
492
votes
9 answers

Can I delete the folder C:\ProgramData\Package Cache\?

There is a new folder full of installers located at C:\ProgramData\Package Cache\. I believe this is from Visual Studio 2012 RC. Can I delete these gigabytes of data without consequences? Are they all temporary files? It's a beta product so I'm not…
Ben L
  • 5,290
  • 3
  • 17
  • 26