Skip to main content

All Questions

Tagged with
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?
desolat's user avatar
  • 1,102
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 ...
user avatar
2 votes
2 answers
4k views

What is a file system which has r/w on all major OSes [duplicate]

Possible Duplicate: Cross-platform filesystem What is a file system which has r/w on all OSes like windows, linux and Mac. Windows comes with FAT and NTFS support and EXT3 support can be added. ...
Sairam's user avatar
  • 242
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 ...
Ville Koskinen's user avatar
12 votes
4 answers
8k views

Watch Filesystem in Real Time on OS X and Ubuntu

I'm looking for a CLI tool which will watch a directory and spit out the names of files that change in real time. some_watch_command /path/to/some/folder | xargs some_callback I'm aware of inotify (...
Adrian Schneider's user avatar
6 votes
2 answers
3k views

OS X keeps "losing" my Linux Samba shares

I have a Linux server (Ubuntu 8.10) and a Macbook (10.5.7). The Linux server has some Samba shares which I mount on the Macbook. They are set to mount on boot using the "Open Applications at Startup" ...
Darren Greaves's user avatar
1 vote
1 answer
964 views

Terminal new window always shows -bash: Searching: command not found

When open terminal, it always shows -bash: Searching: command not found. It does not affect other functions, just each time, even though open a new terminal window, it still pops up at the top of the ...
CarolineGao's user avatar
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 ...
Thierry Lam's user avatar
  • 4,397
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?
Daryl Spitzer's user avatar
22 votes
7 answers
79k 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
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,039
16 votes
2 answers
18k views

How do I disable indexing in a specific directory across multiple platforms?

I have some files that will be accessed across several platforms (Mac OS X and Windows 7 mainly, but I wouldn't rule out Linux in the future) and I do not want these files indexed by the search ...
CyberSkull's user avatar
  • 1,495
15 votes
2 answers
24k views

POSTing a file's contents with CURL

(The following is backstory, you can jump down to "Question:" if you'd like) There's a webpage for one of my courses that accepts input text (expected to be Python code) and then gives some tokenized ...
Cornstalks's user avatar
12 votes
5 answers
12k views

Address VMWare Fusion Linux guest by hostname?

I have a Ubuntu Server 9.04 image set up in VMWare Fusion 3.0.0, using the NAT option for the guest's network connection. From the Mac host, I can ssh to the linux guest just fine using it's IP ...
amrox's user avatar
  • 405
11 votes
3 answers
21k views

Tmux key bindings not working

I installed tmux using homebrew on Mac OSX Lion a while back. Suddenly the keybindings have stopped working. For example if I try Ctrl-b then c (Create new window) it just types c in the terminal ...
HighLife's user avatar
  • 545

15 30 50 per page
1
2 3 4 5 6