DEV Community

Discussion on: What are your command line tips?

Collapse
 
ashokan profile image
Ashok Nagaraj

> <command> !$ last argument of previous command

ls -d /tmp
/tmp

❯ df -h !$
Filesystem     Size   Used  Avail Capacity iused      ifree %iused  Mounted on
/dev/disk3s5  460Gi  292Gi  147Gi    67% 3400906 1539869640    0%   /System/Volumes/Data
Enter fullscreen mode Exit fullscreen mode