Most Popular

1500 questions
85
votes
3 answers

Ensuring new files in a directory belong to the group

I want to create a shared directory when a number of users (all belong to say mygroup) can create and edit files. I would like all files in this directory and subdirectory to belong to mygroup I have changed existing files to have group mygroup…
justintime
  • 3,111
  • 5
  • 28
  • 33
85
votes
9 answers

Can I disable continuation of comments to the next line in Vim?

In Vim, if I'm typing a comment in a code file, and I hit Enter, it automatically makes the newline a comment, too. For instance, in a Ruby file: # I manually typed the pound at the start of this line and hit enter. # This line formatted itself this…
Nathan Long
  • 24,839
  • 34
  • 101
  • 137
85
votes
10 answers

Back button of Adobe PDF Reader after clicking a hyperlink whose target is on the same document

PDF documents have hyperlinks to the contents on the same document (analogous to "#section" hrefs for an HTML document). Where's the back button to go back to the page I was on (where I clicked the hyperlink). Let's say I'm on the index of a PDF…
Srikanth
  • 4,579
  • 6
  • 30
  • 26
85
votes
12 answers

Count the number of words in a PDF file

How can I get the word count of a PDF file? I think that most pdf files for which I want to get total word count have text layer embedded, so I need no OCR. The task was arisen from searching for some scientific papers of known size, e.g. 15000…
osgx
  • 6,387
  • 7
  • 53
  • 68
85
votes
9 answers

grep to find files that contain ^M (Windows carriage return)

I use Linux. There is a pesky ^M (Windows cariage return) somewhere hidden in thousands of configuration files, and I have to find it, because it makes the server fail. How do I find ^M among a directories hierarchy full of configuration files? I…
Nicolas Raoul
  • 10,081
  • 17
  • 60
  • 101
85
votes
3 answers

How do I list the groups that a UNIX user is a member of?

With pts m groupname I can list the users in a group. How can I do the opposite - that is, list all the groups that a user is a member of? (I need this to find the name of a group that I know a user who is a member of, but I don't know the group…
Tomas Aschan
  • 2,766
  • 10
  • 34
  • 38
85
votes
4 answers

How can this Stack Exchange site have an animated favicon?

Yesterday I was browsing on https://stackexchange.com and noticed that the list of all Stack Exchange has an animated favicon: How is this possible? I thought favicons were static ICO files, incapable of animation?
Glorfindel
  • 4,049
  • 8
  • 23
  • 37
85
votes
5 answers

How to open folder without using mouse in Mac?

I'm recently switched to Mac from Windows. It was quite a pain but I am now adjusted to the Mac commands and shortcuts, except one. That is whenever I select a folder and press Return/Enter it executes the rename. While I was expecting it to open…
Prashant Cholachagudda
  • 1,251
  • 3
  • 16
  • 21
85
votes
11 answers

How do you type Unicode characters using hexadecimal codes?

This is in Windows, but answers for other operating systems can be handy to others. Most guides say something to the effect of "hold down the Alt key and type in the code on the keypad". This works fine for decimal codes (like 65 for 'A'), but not…
user939
85
votes
4 answers

How does a Logitech scroll wheel detect movement?

I just replaced my scroll wheel in my mouse, a one minute repair. But now I've seen something that can't be unseen. Logitech scroll wheels apparently function using magic. It freely rests on three buttons that detect left, right, and straight down…
Steve Hanov
  • 841
  • 1
  • 6
  • 9
85
votes
12 answers

How to switch the cursor between terminal and code in VSCode?

I just started using VSCode and I'm looking for a way of, while having both the code open and the terminal(the one inside VSCode), switch between typing on these parts of the editor with a shortcut. Looked around the web but the best I could find…
sigmaxf
  • 1,369
  • 1
  • 11
  • 19
85
votes
6 answers

How can I load a file's contents into the clipboard?

I have a files where I need to copy their contents to another file or into an application and rather than open it up, select all the text then copy and paste I'd like to know if I can effectively cat the file contents into the clipboard. Is this…
Jonathon Watney
  • 1,241
  • 3
  • 16
  • 16
85
votes
2 answers

How to get back to insert mode in VIM when you accidentally hit C-x C-s

Given this vim session: % vim test-file.txt iHello there!C-x C-s How do I get back to insert/command mode again? (C-x C-s means Control-x Control-s, not sure if it's normal vi terminology for keyboard shortcuts) I know there's some way to get out…
gaqzi
  • 1,288
  • 1
  • 9
  • 10
84
votes
7 answers

How to disable or uninstall Microsoft Edge in Windows 10

Is there any possibility to completely disable the new Edge browser? The old IE could be disabled in Settings → Default Programs, but in Windows 10, the checkbox is missing for Edge. Is there any way to get rid of Edge, or at least to disable all…
K. Biermann
  • 940
  • 1
  • 6
  • 8
84
votes
9 answers

How to open Windows CMD so that it starts in the current folder?

When I'm working in a folder in Windows Explorer, sometimes I have a need to run some CMD command in this folder. How do I open the command line from a current folder, so the console opens in the current directory? Example: I work in D:\Apps\Test. I…
boleslaw.smialy
  • 883
  • 1
  • 7
  • 13