All Questions
71
questions
5
votes
2
answers
14k
views
How do I compress multiple files into one archive using lzma?
Looking at the options of xz and lzma, I can't for the life of me figure out how to compress multiple files into one archive. I know it is possible because I've uncompressed a .lzma file and it opened ...
3
votes
2
answers
6k
views
Using ffmpeg with decimal wildcard
I have a folder with PNG images of the following naming scheme:
IMG_0423.png
IMG_0424.png
...
IMG_0509.png
I would like to make an MP4 movie from these images, but I get an error message that ffmpeg ...
33
votes
4
answers
16k
views
Replace OS X's shell commands with the linux versions?
The commands available by default in the Terminal in OS X, don't seem to behave like their linux versions. How can I replace all of them with the actual GNU linux commands?
For example sed -i ...
3
votes
2
answers
2k
views
Command-line interrupts in OS X vs Linux
Occasionally, when I'm developing on my Mac, I'll get a process that hangs. When that happens, I'll try the following:
Ctrl + C in the active terminal window
If nothing happens, I'll open a new ...
24
votes
6
answers
32k
views
Command line tool to identify audio file specs
I'm looking for an audio file equivalent to ImageMagick's identify command.
For example, with identify, I can get brief information about a bunch of images:
% identify b*
banner1.jpg JPEG 134x614 ...
2
votes
3
answers
240
views
Is there a way to use * in the destination of cp, mv, etc?
In the Windows Command Prompt you can do this kind of thing:
ren *.doc *.txt
copy my-precious-document.doc *-backup.doc
Is there a way to do this is the Linux (including OS X) world? It's a very ...
1
vote
1
answer
1k
views
Password Protect file or lock file from command line
I need to lock a file where if anyone tries to open it then it requires a password. I would like for even root to have to type in a password different from the root's password itself. I'm not sure ...
11
votes
2
answers
15k
views
Unzip returns "Unsupported compression method 14"
I recently downloaded a large number of GIS data files from a government agency to a file server and need to unzip all of them via the command line. However, unzip filename.zip is returning "...
118
votes
11
answers
64k
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 ...
3
votes
4
answers
564
views
MacOS command-line - possible to write portable scripts across MacOS and Linux?
I've been mostly pleased with MacOS as a dev platform, and it's somewhat similar to a linux command-line, but there are a number of notable exceptions:
all commands: arguments parsing behavior ...
-2
votes
3
answers
1k
views
Accidentally moved Desktop folder ingo /usr/local/bin
I ran mv -n /desktop /user/local/bin and as a result everything on my desktop is gone. I tried the opposite mv -n /user/local/bin /desktop in the hopes of undoing it but now only one of those ...
1
vote
2
answers
577
views
OS X (Unix, Linux): Find files with a space in the name, copy and rename them, and move them to a separate folder
Google Music Beta won't upload mp3's with spaces in the actual filename. I would like a script that will find all the ones that have a space in the filename and copy them, rename them (just remove the ...
1
vote
5
answers
675
views
Does OS X support linux-like features? [closed]
I have been using XP for almost a decade. Contrary to popular belief, it has served me well. In the last 4 years I don't remember ever having it crash on me. It has the most stable GUI I have ever ...
0
votes
1
answer
441
views
Different time specification formats with crontab
Say you want to run a job every 30 minutes on linux (or osx) using crontab. Sometimes I see the the sytax written like this:
30 * * * * /path/to/job
and sometimes I see it written like
*/30 * * * * ...
41
votes
6
answers
107k
views
How does Mac's command line compare to Linux?
I love Ubuntu Linux - especially the commmand line. But I have to admit that, at least for now, Windows is more user-friendly - there's more software for it, more drivers, and more stuff just works.
...