How to list full path of files/directories using only ls command (working in a restricted shell)
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have restricted shell on Production environment servers in my company, leaving me with handful of command choices.
I am trying to get full path of files/directories using only ls command. I can't use xargs, sed, awk, find in the restricted shell, so I am only left with using options in the ls command.
I have tried below command but this doesn't recurse. I mention this as I came across this command while searching an answer for my problem.
ls -lRt -d -1 $PWD/*,.*
command-line
add a comment |Â
up vote
0
down vote
favorite
I have restricted shell on Production environment servers in my company, leaving me with handful of command choices.
I am trying to get full path of files/directories using only ls command. I can't use xargs, sed, awk, find in the restricted shell, so I am only left with using options in the ls command.
I have tried below command but this doesn't recurse. I mention this as I came across this command while searching an answer for my problem.
ls -lRt -d -1 $PWD/*,.*
command-line
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have restricted shell on Production environment servers in my company, leaving me with handful of command choices.
I am trying to get full path of files/directories using only ls command. I can't use xargs, sed, awk, find in the restricted shell, so I am only left with using options in the ls command.
I have tried below command but this doesn't recurse. I mention this as I came across this command while searching an answer for my problem.
ls -lRt -d -1 $PWD/*,.*
command-line
I have restricted shell on Production environment servers in my company, leaving me with handful of command choices.
I am trying to get full path of files/directories using only ls command. I can't use xargs, sed, awk, find in the restricted shell, so I am only left with using options in the ls command.
I have tried below command but this doesn't recurse. I mention this as I came across this command while searching an answer for my problem.
ls -lRt -d -1 $PWD/*,.*
command-line
command-line
asked 1 min ago
user3112966
11
11
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476672%2fhow-to-list-full-path-of-files-directories-using-only-ls-command-working-in-a-r%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password