DEV Community

Discussion on: Linux's commands and tricks I'm using in my daily job as a developer

Collapse
 
patryktech profile image
Patryk • Edited

alt + . is a great one too, in bash.

$ mkdir -p /tmp/some/nested/directory
$ cd <alt+.> # types the LAST argument - /tmp/some/nested/directory

Re: netstat, it still works, of course, and you can continue using it, but it is deprecated in favour of ss.

Re: sshing into a DB server as root, no offence, but I don't believe your company actually has a security policy :D (hopefully it was just an example).

Collapse
 
gtobar profile image
Guillermo Tobar

For years I looked for this, and finally found it. Thank you very much for your contribution Patryk.

Collapse
 
mateuszjarzyna profile image
Mateusz Jarzyna • Edited

Re: sshing into a DB server as root, no offence, but I don't believe your company actually has a security policy :D (hopefully it was just an example).

Yup, it was a 'funny' example