Skip to main content

All Questions

Tagged with
100 votes
2 answers
179k 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 ...
cwd's user avatar
  • 18.3k
39 votes
2 answers
29k views

what does the @ symbol mean in ls -l directory listing? [duplicate]

Possible Duplicate: ls -la symbolics… what does that last symbol mean? When I run ls -l on my mac I see two .yml files: -rw-r--r-- 1 aa staff 6 Apr 15 05:50 s1.yml -rw-r--r--@ 1 aa ...
Andrew Arrow's user avatar
29 votes
3 answers
68k views

What does kill -3 mean?

I know what kill -9 means, but anyone can explain what does kill -3 mean? Is there any special signal it sends out?
user705414's user avatar
  • 1,445
25 votes
4 answers
10k views

How to get tree -a to ignore .git directories?

I love using tree to list directories, and I have a git repository with all my dotfiles. For me to be able to see them I need to do tree -a, but that will also list the contents inside the .git ...
user avatar
25 votes
4 answers
56k views

What's the difference between .profile and .bash_profile, and when do you configure which? (Mac) [duplicate]

Possible Duplicate: Difference between .bashrc and .bash_profile What's the difference between .profile and .bash_profile, and when do you configure which? I.e if I configure the .bash_profile, ...
Imran's user avatar
  • 373
20 votes
6 answers
110k views

tcpdump – rotate capture files using -G, -W and -C

I'm looking to be able to capture a rotating tcpdump output which captures 30 minutes worth of data, into 48 files, cyclically. The man page implies this should be possible, but my testing doesn't ...
Andrew's user avatar
  • 558
18 votes
3 answers
10k views

How to list directories names but not their contents, in *N*X?

If I do a simple ls specifying a filename pattern, like ls A*, for directories that match the pattern, it will enter the directory and give the full listing, but how could I get just the listing for ./...
Petruza's user avatar
  • 3,883
12 votes
4 answers
15k views

Rsync over ssh, or something else?

I've been trying to use rsync on OSX to Linux or Unix box over which I don't have much control. I've been doing something like this rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/ ...
Dan Rosenstark's user avatar
11 votes
3 answers
12k views

What is the Unix PATH variable and how do I add to it?

Many programming tutorials ask users to add something to their PATH but don't explain what it is. The existing resources that explain the PATH to users new to the command line are not very good. What ...
Kevin Burke's user avatar
10 votes
3 answers
7k views

Expanding globs in xargs

I have a directory like this mkdir test cd test touch file{0,1}.txt otherfile{0,1}.txt stuff{0,1}.txt I want to run some command such as ls on certain types of files in the directory and have the * (...
Craig's user avatar
  • 273
8 votes
2 answers
2k views

Passing options to a program: what's the convention for one dash vs two?

Some programs will take options like this: $ someprogram -orange apple And other programs will use something like this: $ otherprogram --orange apple Is there a "rule" or convention for this in ...
Closure Cowboy's user avatar
7 votes
2 answers
4k views

How do you use "sips" at the terminal to resize an image, without upscaling?

I have some code that I've been using to resize images in Mac OS X via the command prompt (and/or quicksilver), to a maximum width or height of 500px. The only problem is that if the original image is ...
cwd's user avatar
  • 18.3k
6 votes
2 answers
5k views

Syntax for find on Mac OS X

I have a project directory that contains source code and subdirectories of source code. I want to use the Unix program find to search recursively for the names of files of certain extensions. The ...
hekevintran's user avatar
  • 2,747
6 votes
3 answers
3k views

Mac OS X Linux Unix version

What Linux or Unix version underlies Mac OS, OS X 10.6? Is there a good documentation for that version, specifically regarding security, networks and similar topics?
digit's user avatar
  • 255
5 votes
10 answers
15k views

Is there a simpler form of find . -name "*substring_of_filename*" on Mac OS X and Linux?

On Mac OS X or Linux, is there a simpler form of the command find . -name "*substring_of_filename*" which is to find all files having names containing substring_of_filename within the current ...
user avatar

15 30 50 per page
1
2 3 4 5