Short tips – Parte 2

Dicas curtas publicadas no meu perfil do Twitter. Para ver outras dicas acesse o índice com todas as partes.

$ ls
-z
$ # what is inside of '-z' file?
$ cat -z
cat: illegal option -- z
$ cat '-z'
cat: illegal option -- z
$ cat "-z"
cat: illegal option -- z
$ cat -- -z
Hi! I'm the '-z' file.
$ cat ./-z
Hi! I'm the '-z' file.
$ python
Python [version]...
>>> ^D
$ which python  # which python am I running by default?
/.../pyenv/shims/python
$ echo -ne "\e]0;My custom terminal title\a"
$  find .
.
./A
./B

$ cd A
./A $ cd ../B

./B $ cd -
/.../A

./A $