Quantcast
Channel: dir command: force output to one filename per line, full path included, but nothing else - Ask Ubuntu
Viewing all articles
Browse latest Browse all 5

dir command: force output to one filename per line, full path included, but nothing else

$
0
0

This will probably seem to be a simple question for advanced users, but I have tried with no success.

I want to get a file list in the terminal using the dir command, having the following format: only one file per line, full path included, but no other info, for example:

/home/user/beginner/file1.txt/media/beginner/movies/video1.mp4

Now I have observed that I'll get this output automatcally without using switches on external drive folders and directing the output into a file. But on the harddrive it will default to the "names-only in columns" style.

How can I force dir to instead use the output format that I want?


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>