Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kentarosasaki/7e3c367050914d00436a4cf4bb534fb7 to your computer and use it in GitHub Desktop.
Save kentarosasaki/7e3c367050914d00436a4cf4bb534fb7 to your computer and use it in GitHub Desktop.
lsコマンドのオプションはどこにでも置ける ref: http://qiita.com/kentarosasaki/items/1006c77f72a56f04fbaf
$ ls testdir/ -l
ls: -l: No such file or directory
testdir/:
testfile1.txt testfile2.txt
$ echo $?
1
$ ls testdir/ -l
total 0
-rw-r--r-- 1 testuser ubuntu 0 Nov 18 15:44 testfile1.txt
-rw-r--r-- 1 testuser ubuntu 0 Nov 18 15:44 testfile2.txt
$ ls -l testdir/
total 0
-rw-r--r-- 1 testuser ubuntu 0 Nov 18 15:44 testfile1.txt
-rw-r--r-- 1 testuser ubuntu 0 Nov 18 15:44 testfile2.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment