Most Popular

1500 questions
97
votes
5 answers

Where to find the .bashrc file on Mac OS X Snow Leopard and Lion?

I want to install rvm on my Snow Leopard machine. It says I need to add a line to my .bashrc file (I'm using bash) but where is my .bashrc file?
Yuval
  • 2,298
97
votes
14 answers

For x=3 in Excel, why does = - x^2 + x result in 12 instead of -6?

Suppose my cell A1 in an Excel spreadsheet holds the number 3. If I enter the formula = - A1^2 + A1 in A2, then A2 shows the number 12, when it should show -6 (or -9+3) Why is that? How can I prevent this misleading behaviour?
96
votes
5 answers

7-Zip and unzipping from command line

I am looking to use the command line 7-Zip to unzip a folder. I have a file, say example.zip and want to unzip the contents of the file into a folder called example. What are the commands I need to do this?
duhaas
  • 1,083
96
votes
5 answers

Why does the system have /etc/sudoers.d? How should I edit it?

Last time, I asked about the risk of these (in /etc/sudoers): user_name ALL=(ALL) /usr/bin/vim /etc/httpd/confs/httpd.conf %group_name ALL=(ALL) /usr/bin/vim /etc/httpd/confs/httpd.conf While I was thinking about this problem, I found…
aob
  • 1,095
96
votes
6 answers

Access iCloud Drive via terminal

OS X 10.10 was just released, and one of the features I personally awaited the most was iCloud Drive. Unfortunately, I had to learn that it was not as accessible as Dropbox. file ~/Dropbox /Users/Ingwie/Dropbox/: directory ...but, iCloud Drive? ls…
96
votes
12 answers

What's a good solution for file-tagging in linux?

I've been looking for a way to tag my files and search/filter them based on those tags. Here are my (updated) requirements : any file readable by the user can be tagged freely a user can search for files matching one or several tags files can be…
julien
  • 1,596
96
votes
14 answers

How to invert the Fn key

I have this problem on my laptop: If my Fn key is pressed, the normal (PC-like) F1 - F12 keys will be triggered; when it isn't, then the special keys will be triggered (e.g. brightness control, sound volume). Is there any way I can invert this, so…
ioanD
  • 1,065
96
votes
4 answers

What does "2>&1" do in command line?

I know that the > sign is used for output redirection in the command line, but I'm having trouble finding something that explains the use of 2>&1 in the command line. For example: curl http://www.google.com > /dev/null 2>&1 &
Matt Huggins
  • 1,369
96
votes
8 answers

Concatenate multiple WAV files using single command, without extra file

I want to concatenate multiple WAV files into a single WAV file using FFMPEG. I have used the following command and it generates the required file. Command: ffmpeg -f concat -i mylist.txt -c copy output.wav File : #mylist.txt file '1.wav' file…
Manu
  • 1,203
  • 2
  • 9
  • 9
96
votes
1 answer

On tmux, what is the difference between "bind" and "bind-key"?

On .tmux.conf, what is the difference between "bind" and "bind-key"?
fkreusch
  • 1,063
96
votes
6 answers

Can I monitor a local unix domain socket like tcpdump?

I'd like to monitor responses on a unix socket without disturbing the original connections and pipe them to a script for processing. I know how to do this with tcpdump for tcp connections but I cannot seem to find a solution for local unix…
ck_
  • 1,935
96
votes
11 answers

Cross-platform file system

I would like my external drives to be readable and writable from Linux, Mac OS X and Windows. FAT32 works, but the 4 GB file size limit is a showstopper these days. Are there any alternatives?
Console
  • 2,680
96
votes
2 answers

What's the difference between 'C' and 'CE' functions on Windows calculator?

I have always seen the C and CE buttons on physical calculators just as they are displayed on the Windows Calculator, but I never really understood what the abbreviations mean and what exactly is the difference between them: So, what do the…
Diogo
  • 30,792
96
votes
7 answers

How to keep only every nth line of a file

I've got a rather sizable CSV file (75MB). I'm just trying to produce a graph of it, so I really don't need all of the data. Rewording: I'd like to delete n lines, then keep one line, then delete n lines, and so on. So if the file looked like…
Computerish
  • 1,063
96
votes
10 answers

Why doesn’t SCP work while SSH does?

If I want to send something via scp to server: scp file server: _____ _____ _____ Then three lines are printed and file is not copied. However I can connect to server via ssh without problem: ssh server How to make scp work?
scdmb
  • 1,211