Skip to content

Instantly share code, notes, and snippets.

@joejulian
Created March 18, 2016 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joejulian/538068155756cc552ac3 to your computer and use it in GitHub Desktop.
Save joejulian/538068155756cc552ac3 to your computer and use it in GitHub Desktop.
jjulian at questor in /tmp/foo.mnt
$ df -h .
Filesystem Size Used Avail Use% Mounted on
none 16G 0 16G 0% /tmp/foo.mnt
jjulian at questor in /tmp/foo.mnt
$ truncate --size=5G fubar
jjulian at questor in /tmp/foo.mnt
$ ls -l fubar
-rw-r--r-- 1 jjulian jjulian 5368709120 Mar 18 13:48 fubar
jjulian at questor in /tmp/foo.mnt
$ df -h .
Filesystem Size Used Avail Use% Mounted on
none 16G 0 16G 0% /tmp/foo.mnt
jjulian at questor in /tmp/foo.mnt
$ tar cvpf foo.tar fubar
fubar
jjulian at questor in /tmp/foo.mnt
$ ls -lh foo.tar
-rw-r--r-- 1 jjulian jjulian 5.1G Mar 18 13:49 foo.tar
jjulian at questor in /tmp/foo.mnt
$ df -h .
Filesystem Size Used Avail Use% Mounted on
none 16G 5.1G 11G 32% /tmp/foo.mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment