All Questions
992
questions
646
votes
7
answers
930k
views
Permissions on private key in .ssh folder?
I changed my permissions in my .ssh folder and now when I use a piece of software that uses my private key, I have to type my password each time. What should my permissions be on my id_rsa file to ...
295
votes
5
answers
144k
views
What's the equivalent of Linux's updatedb command for the Mac?
If I want to use the locate command on a Linux machine, I usually run sudo updatedb first to update the database. I can run the locate command on OS X 10.5 but I can't find updatedb. What's the ...
192
votes
5
answers
93k
views
What's like OSX's pbcopy for Linux
In a terminal in OSX I can pipe output to pbcopy and then go into a web browser and paste it. I tried this in Linux with xcopy but when I switch to the browser it just overwrites the clipboard with ...
138
votes
4
answers
170k
views
ip command in Mac OS X terminal
I use the command ip link in Linux. Now I want it on Mac OS X, but the Mac OS X terminal doesn't have ip. What should I use instead?
118
votes
11
answers
63k
views
Linux / OS X tar incompatibility – tarballs created on OS X give errors when untarred in Linux
When I tar up files on my Macbook and untar them in Linux, I repeatedly get the following warnings/errors:
tar: Ignoring unknown extended header keyword `SCHILY.ino'
tar: Ignoring unknown extended ...
100
votes
2
answers
178k
views
How do I clear out the ssh-agent entries (on Mac OS X )?
I'm running Mac OS X, and it appears that after SSHing to several machines, using identity files, my 'ssh-agent' builds up a lot of identity / keys and then sometimes offers too many to a ...
91
votes
5
answers
197k
views
How do I get the size of a Linux or Mac OS X directory from the command-line? [duplicate]
What command do I use to find the size of all the files (recursively) in a Linux or Mac OS X directory?
85
votes
17
answers
104k
views
Untar, ungz, gz, tar - how do you remember all the useful options?
I am pretty sure I am not the only one with the following problem: every time I need to uncompress a file in *nix I can't remember all the switches, and end up googling it, which is surprizing ...
80
votes
9
answers
69k
views
How do I get ls --color=auto to work on Mac OS X?
I'm trying to move my bash configuration from Ubuntu to Mac OS X and it looks like ls is slightly different. For instance, it won't accept the --color option.
How do I get this to work?
65
votes
14
answers
126k
views
Batch convert encoding in files
How can I batch-convert files in a directory for their encoding (e.g. ANSI → UTF-8) with a command or tool?
For single files, an editor helps, but how can I do the mass files job?
59
votes
3
answers
141k
views
What is the equivalent of the Linux command "sudo fdisk -l" in MacOS?
In Linux, the command sudo fdisk -l produces an output that lists all the disks and partitions in the computer. Here is an example:
If I try to use sudo fdisk -l in MacOS X 10.7.5, the output is the ...
56
votes
4
answers
81k
views
Find libraries a binary was linked against
I know that there is a command that lists me the libs and respective versions a software
was linked against.
Something with ld or libtool?
But I just cannot remember. Spent some time on google but ...
48
votes
6
answers
63k
views
How can I install objdump on Mac OS X?
I want to get the source code of a small command line tool using objdump on Mac OS X.
I've used arm-linux-objdump on Linux and find it a great tool.
Is there any way to install objdump on OS X? I've ...
46
votes
1
answer
13k
views
What's an elegant way to copy the creation and modification dates of a file to another file?
How can I set the time information of a file to be the same as of another file on OSX / Linux?
42
votes
8
answers
32k
views
How to pipe text from command line to the clipboard
I'd like to do something like
dir *.* > clipboard
ie. get to get the standard output of a command line program copied to the clipboard. Can this be done on a standard XP machine without ...