Skip to main content

All Questions

Tagged with
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 ...
Dave Dopson's user avatar
  • 1,275
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?
Daryl Spitzer's user avatar
59 votes
3 answers
141k views

What is the equivalent of the Linux command "sudo fdisk -l" in MacOS?

In Linux, the command sudo fdisk -l produces an output that lists all the disks and partitions in the computer. Here is an example: If I try to use sudo fdisk -l in MacOS X 10.7.5, the output is the ...
Vito Gentile's user avatar
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
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. ...
Nathan Long's user avatar
  • 26.8k
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 ...
TheOne's user avatar
  • 1,395
28 votes
7 answers
111k views

What is the terminal command other than ctrl + c to exit a running Node.js program in a macOS?

In Linux terminal if I run a command like: $ node httserver.js The command runs and by doing ctrl + c the program is terminated and new line comes in terminal for us to enter a command. I felt ctrl ...
Sagi_Avinash_Varma's user avatar
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 ...
Doug Harris'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
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
12 votes
4 answers
7k views

How do I get GNU screen not to start in my home directory in OS X?

GNU Screen (screen) behaves differently on OS X 10.5 (Leopard) and 10.6 (Snow Leopard) compared to Linux (at least Ubuntu, Red Hat, and Gentoo) and OS X 10.4 (Tiger). In 10.5 and 10.6, new screens (...
Benjamin Oakes's user avatar
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 "...
Miles Erickson's user avatar
10 votes
4 answers
77k views

What does an arrow ("->") symbol mean on the command line?

I'm working with Terminal (Mac OS X), but I think this is a built-in part of Linux. Sometimes, when I execute a command, Terminal returns a new, indented line with just -> on the line. It seems ...
Josh Leitzel's user avatar
9 votes
3 answers
78k views

How to run a bash script via absolute path?

I have a file: /Users/danylo.volokh/test/test_bash_script.sh Content is very simple: #!/usr/bin/env bash echo "-- print from script" I'm in folder "danylo.volokh" This command runs fine: Danilos-...
Danylo Volokh's user avatar
8 votes
6 answers
3k views

In Bash (Mac/Linux terminal shell), can the up and down arrow keys be made to function as they do in text editors?

In text editors, if I press the up and down arrow keys, it moves the cursor between lines of text. In Bash, if I’m typing a long command that spans multiple lines and I press the up and down arrow ...
Frungi's user avatar
  • 215

15 30 50 per page
1
2 3 4 5