Skip to main content

All Questions

Tagged with
23 votes
1 answer
18k views

How to overwrite a symbolic link of a directory?

There are two directories foo1 and foo2. At first I make a directory symlink by ln -s foo1 bar. After that I want to change the symlink, so I typed ln -sf foo2 bar But bar is still linked with foo1. ...
ironsand's user avatar
  • 2,339
22 votes
7 answers
80k views

No /mnt/hgfs in Ubuntu guest under VMWare Fusion

I just installed Ubuntu 13.04 inside of VMware Fusion Pro 5. I have the virtual machine configured for read-only sharing of my home directory, but there's no /mnt/hgfs directory and there's no /etc/...
Lorin Hochstein's user avatar
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
20 votes
1 answer
38k views

Preserve ctime with SCP

How can I copy a file using SCP while preserving ctime (modification time)? I have a folder on my Mac (OS 10.8), and the results of ls -l and ls -lc are the same. $ ls -l total 0 drwxr-xr-x 9 ...
Elliott B's user avatar
  • 1,265
20 votes
2 answers
37k views

Rsync installed but still getting an error command not found

I am trying to sync a local folder to a remote server using a non standard port and my rsync command is as follows: rsync -avz ~/Research/Folder1/folder2 -e "ssh -p 3345" [email protected]:/home/...
Morpheus's user avatar
  • 305
20 votes
3 answers
10k views

How to configure dual boot NixOS with Mac OS X on an (U)EFI MacBook?

I could not find any description of configuring dual boot of NixOS and Mac OS X on an (U)EFI MacBook. I am willing to experiment, but i would like to know at least that what i will try is supposed to ...
Alexey's user avatar
  • 1,211
19 votes
2 answers
14k views

dd performance on Mac OS X vs. Linux

I was trying to copy an iso of the windows installer onto a hard drive to avoid burning a disk. I first tried Disk Utility's restore function, however it didn't like the ISO for some reason. Then I ...
charliehorse55's user avatar
19 votes
5 answers
16k views

How to list files recursively and sort them by modification time?

How do I list all files under a directory recursively and sort the output by modification time? I normally use ls -lhtc but it doesn't find all files recursively. I am using Linux and Mac. ls -l on ...
qazwsx's user avatar
  • 9,049
19 votes
2 answers
25k views

Highlighting text in the default Windows CHM viewer

How do I set up the default CHM reader in Windows to highlight text? Is this even possible? When I read ebooks I need to highlight some of the text and it's just not there in the default CHM program....
n1kh1lp's user avatar
  • 353
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
17 votes
2 answers
24k views

Clearing Spotify cache to recover disk space?

When you play a song in Spotify, some hard drive space is used to cache the file, so that it plays faster the next time it is selected. Is it possible to clear the cache (without the use of third ...
Simon's user avatar
  • 4,487
17 votes
4 answers
5k views

Why aren't all Mac applications easily portable to Linux?

Since the Apple OS-X operating system is a UNIX derivative (BSD), and the underlying (Intel) Mac architecture is the same, why isn't it very straightforward to get Apple-specific applications running ...
Nick Pierpoint's user avatar
17 votes
3 answers
22k views

How to force ls terminal command to show results in Bytes while I have set the default to ls -h in bash profile?

I am following the snippet here to improve my terminal command in Mac OSX. It sets the default value of ls results to human-readable by exporting alias ls='ls -GFh' to bash profile file. This is very ...
cybergeek654's user avatar
17 votes
4 answers
15k views

How to truncate large file on osx?

I have a 500mb file. I want to keep only the first 5 mb. How can I truncate it on osx where the 'truncate' command isn't available (and can't be installed by homebrew)?
donald's user avatar
  • 171
16 votes
4 answers
84k views

How do I recursively remove subdirectories and files, but not the first parent directory?

I'm able to use the following to remove the target directory and recursively all of its subdirectories and contents. find '/target/directory/' -type d -name '*' -print0 | xargs -0 rm -rf However, I ...
Michael Prescott's user avatar

15 30 50 per page
1 2
3
4 5
67