Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

tar -czf ./file.tgz ./*

edit: i do hope that is correct without checking :-)



So the dash in `-czf` if optional? Which reminds me: why does ps have two sets of options again?


Don't laugh, it's actually three sets of options now:

- UNIX options, which may be grouped and must be preceded by a dash.

- BSD options, which may be grouped and must not be used with a dash.

- GNU long options, which are preceded by two dashes.

Reference: https://man7.org/linux/man-pages/man1/ps.1.html




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: