Skip to content

Instantly share code, notes, and snippets.

@quickredfox
Created June 12, 2012 21:36
Show Gist options
  • Save quickredfox/2920297 to your computer and use it in GitHub Desktop.
Save quickredfox/2920297 to your computer and use it in GitHub Desktop.
list files and directories with absolute paths in linux/unix/osx terminal
# Use this for dirs:
ls -d -1 $PWD/**
# this for files:
ls -d -1 $PWD/*.*
# this for everything:
ls -d -1 $PWD/**/*
# Taken from here http://www.zsh.org/mla/users/2002/msg00033.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment