All Questions
85
questions
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?
648
votes
7
answers
935k
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 ...
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. ...
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 ...
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 (...
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" ...
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 ...
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 ...
91
votes
5
answers
198k
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?
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/...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
8
votes
6
answers
13k
views
Which torrent apps work headless (from command line only)?
There's a question on here about what torrent apps work well remotely, but I'm hoping to find out one that works well through a command line interface, preferably with no GUI.
What torrent apps ...
7
votes
6
answers
9k
views
Best filesystem for use with multiple OS? [duplicate]
what's the best file system to use with windows, osx, and linux that is not fat32.
I need a file system that can share large video files with good performance
5
votes
3
answers
6k
views
Software to show typed keys on the screen
Just as the capture shows, when you type something using the keyboard, a big label appears at the bottom of the screen showing the keys you typed.
I use Windows & Linux, so I just want to know if ...
1
vote
2
answers
718
views
Cross-platform centralized desktop password manager
I have been using KeePass as a desktop password manager on Windows for many years. Love it! However, I am now needing to work on different platforms much of my day (Windows 7, Windows XP, Mac OS X, ...
1
vote
2
answers
820
views
Do I need to enable TRIM in all OS if multibooting?
I multiboot. Does one OS issuing TRIM to my SSD cover all partitions or not?
I have a MacBook Pro (Core2Duo version 2.1 - late 2007) with the HDD replaced with a SSD. I am multi-booting it with ...
0
votes
2
answers
9k
views
How to interpret TCP/ip fingerprint when scanning for OS?
I run the command : nmap -O ip_address to identify the os and I have the result below:
OS:SCAN(V=5.05BETA1%D=8/23%OT=22%CT=1%CU=42341%PV=N%DS=0%DC=L%G=Y%TM=4A91CB
OS:90%P=i686-pc-linux-gnu)SEQ(SP=...
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 ...
85
votes
17
answers
105k
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 ...
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?
33
votes
4
answers
18k
views
Moving a file while it's in use -- How does it work?
I've noticed that on non-Windows OS.... ie Linux/Mac I can do things like:
Send a zip to a friend over aim
Delete the file while it's in transfer
And the transfer does not fail.
Or, I can do ...
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?
27
votes
4
answers
46k
views
Adding a line into the hosts file, getting permission denied when using sudo - Mac
I'm trying to add a line into the hosts file on my Mac by executing a one line command on the terminal.
I thought this would be easy using sudo, but it returns "permission denied" when I try to add &...
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....
15
votes
4
answers
41k
views
Getting UEFI shell when trying to boot OS X in Virtual Box
I am using the latest test build of Virtual Box (normal versions don't work on El Capitan).
When trying to boot a Virtual Machine with an El Capitan cdr file (created from the command line) I end up ...
14
votes
2
answers
13k
views
How to force to restart firefox in a clean way?
Many times when I upgrade the system under Linux, firefox pops up a window suggesting to restart the program in order to make effective all the changes.
When I ignore that windows because of an ...
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/
...
10
votes
4
answers
41k
views
How to have multiple windows in a SSH terminal session?
From Mac OSX I login to a remote server that handles parallel computing jobs. I am not able to install anything on this server as it is administered by the university.
I have multiple jobs running and ...
9
votes
1
answer
2k
views
SSH to Vmware virtual machine with NAT network [duplicate]
right now I am able to ssh to host over internet and ssh from host to the virtual machine. What I want to do is ssh directly to the Guest machine from outside.
I tried to do this using iptables:
...
9
votes
4
answers
29k
views
Mount a HFSPlus disk with read/write permissions in Linux
I realise that this question is similar in nature to this question, but I'm hoping to specifically bring more attention to an additional problem in one of the comments of this answer to that question.
...
9
votes
2
answers
12k
views
hdiutil on Linux
Anyone know of a Linux port of the Mac OS tool hdiutil (http://www.unix.com/man-page/osx/1/hdiutil/)?
9
votes
8
answers
12k
views
Bandwidth monitor for Mac OS X?
This is similar to the question:
Does software exist to log all download / upload usage?
But, I want to know what options are out there for OS X? This includes Dashboard widgets and standard ...
8
votes
1
answer
28k
views
OpenSSL and what encryption method to use
I am on OS X 10.8.3, savvy with a command-line and I want to use OpenSSL to start encrypting sensitive information on my MacBook Pro
I know that I can use openSSL in a syntax like:
openssl enc -aes-...
6
votes
1
answer
9k
views
Route only certain IP range with VPN connection
We are using FortiClient to connect to one of our client's VPN. Unfortunately, FortiClient is routing all the traffic over VPN as default.
We have found a way around it, for Linux. After connecting ...
6
votes
1
answer
7k
views
Rsync is resending all files, because files have different timestamp (off by 1 second?)
I am using rsync to backup files from my Mac laptop to a USB drive (exFAT) on my Windows laptop. The USB drive is shared within my home network, and mounted on my Mac.
I noticed a weird problem when ...
5
votes
1
answer
3k
views
Cross-platform tool for clipboard sharing? [closed]
I'm looking for a tool that will allow me to share the clipboard between multiple systems operating within a LAN. The requirements I have are:
It can run on Windows, macOS, and Linux
Sharing is ...
5
votes
1
answer
789
views
Would firewire networking be better than 100Megabit ethernet?
My office network has a fully switched 1000Megabit ethernet network. I have an Apple iMac with a Gigabit NIC and FireWire, and a Compaq laptop with a 100Megabit NIC and a 4-pin FireWire interface. ...
4
votes
1
answer
365
views
Do other OS's support ALT-codes?
Do OS's other than Windows support Alt-codes? If I put in Alt+1 for ☺, would I be able to put the same code in on MacOS and Linux and get the same output?
4
votes
1
answer
1k
views
Apple shortcuts in Ubuntu
I switch between a Mac and Ubuntu often. On my Ubuntu box, I use an Apple Aluminum keyboard.
I'm interested in Apple's "command" key: ⌘.
(I'm not concerned about the hardware control keys.)
cmd+...
4
votes
4
answers
8k
views
What is an XPerf alternative for Linux and Mac OS X?
XPerf is a tool that allows you to take a detailed trace of various system activity like CPU, I/O and more...
Because of it's detail you can see stack trace counts, disk position offset graphs, ...
4
votes
1
answer
5k
views
Getting the full path to a file with "readlink -f" does NOT work on OSX?
On Linux (redhat/ubuntu/you name it), I can do this:
$readlink -f myfile.txt
/tmp/local/path/to/myfile.txt
On OSX (yosemite):
$ readlink -f eclipse-projects.xml
readlink: illegal option -- f
Can ...
4
votes
3
answers
12k
views
"Argument list too long" error for `rm -rf *` on a directory with 4000 files
I thought this issue was fixed in Linux like 10 years ago. 4000 files really doesn't seem too excessive and should be able to be removed no problem. So this issue clearly exists in OS X - maybe not in ...
3
votes
4
answers
1k
views
How can I "record" sound directly from an audio file?
What is the easiest way to route an audio output (e.g. a playing song) into the recording input of another application (e.g. discord's microphone input)?
I'm looking for a solution that is ...
3
votes
1
answer
1k
views
Keyboard-Shortcut to move windows around on multiscreen setup [duplicate]
Possible Duplicate:
How to automagically move windows between monitors with one keystroke?
I am looking for a way to move windows around on a multi-screen (usually dual screen) setup. So with a ...
3
votes
2
answers
3k
views
Why must I use sudo for ssh public key authentication to work?
I cannot ssh from my computer (OS X) to my raspberry pi (ubuntu mate), unless I use sudo. I am using a public/private keypair to authenticate.
The appropriate public key is added to the ...