How to get a list of files of a huge size directory without using ls command (90GB) [closed]
up vote
-1
down vote
favorite
In linux server, is there a way to get the list of files in a directory
without using commands such as ls-la?
Our log directory size is too huge (almost 90GB) that
when we use ls -la command to get the list of files in that directory,
the command prompt does not come back...
linux command-line command-prompt
closed as off-topic by Burhan Khalid, Pang, Devon_C_Miller, lagom, phuclv Nov 12 at 6:13
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – Pang, phuclv
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
up vote
-1
down vote
favorite
In linux server, is there a way to get the list of files in a directory
without using commands such as ls-la?
Our log directory size is too huge (almost 90GB) that
when we use ls -la command to get the list of files in that directory,
the command prompt does not come back...
linux command-line command-prompt
closed as off-topic by Burhan Khalid, Pang, Devon_C_Miller, lagom, phuclv Nov 12 at 6:13
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – Pang, phuclv
If this question can be reworded to fit the rules in the help center, please edit the question.
This sounds like a problem with your files system - you may want to empty some space on the partition and try again.ls
has no problems with large directories.
– Burhan Khalid
Nov 12 at 3:50
4
I'm voting to close this question as off-topic because it is better suited forunix.stackexchange.com
.
– Burhan Khalid
Nov 12 at 3:51
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
In linux server, is there a way to get the list of files in a directory
without using commands such as ls-la?
Our log directory size is too huge (almost 90GB) that
when we use ls -la command to get the list of files in that directory,
the command prompt does not come back...
linux command-line command-prompt
In linux server, is there a way to get the list of files in a directory
without using commands such as ls-la?
Our log directory size is too huge (almost 90GB) that
when we use ls -la command to get the list of files in that directory,
the command prompt does not come back...
linux command-line command-prompt
linux command-line command-prompt
asked Nov 12 at 2:23
KeepOnAsking
32
32
closed as off-topic by Burhan Khalid, Pang, Devon_C_Miller, lagom, phuclv Nov 12 at 6:13
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – Pang, phuclv
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by Burhan Khalid, Pang, Devon_C_Miller, lagom, phuclv Nov 12 at 6:13
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions about general computing hardware and software are off-topic for Stack Overflow unless they directly involve tools used primarily for programming. You may be able to get help on Super User." – Pang, phuclv
If this question can be reworded to fit the rules in the help center, please edit the question.
This sounds like a problem with your files system - you may want to empty some space on the partition and try again.ls
has no problems with large directories.
– Burhan Khalid
Nov 12 at 3:50
4
I'm voting to close this question as off-topic because it is better suited forunix.stackexchange.com
.
– Burhan Khalid
Nov 12 at 3:51
add a comment |
This sounds like a problem with your files system - you may want to empty some space on the partition and try again.ls
has no problems with large directories.
– Burhan Khalid
Nov 12 at 3:50
4
I'm voting to close this question as off-topic because it is better suited forunix.stackexchange.com
.
– Burhan Khalid
Nov 12 at 3:51
This sounds like a problem with your files system - you may want to empty some space on the partition and try again.
ls
has no problems with large directories.– Burhan Khalid
Nov 12 at 3:50
This sounds like a problem with your files system - you may want to empty some space on the partition and try again.
ls
has no problems with large directories.– Burhan Khalid
Nov 12 at 3:50
4
4
I'm voting to close this question as off-topic because it is better suited for
unix.stackexchange.com
.– Burhan Khalid
Nov 12 at 3:51
I'm voting to close this question as off-topic because it is better suited for
unix.stackexchange.com
.– Burhan Khalid
Nov 12 at 3:51
add a comment |
2 Answers
2
active
oldest
votes
up vote
2
down vote
echo *
... will show files in the current folder through file globbing on Bourne compatible shells.
This lists all files down one level:
echo /
In Bash, if globstar is set (set with shopt -s globstar
, unset with shopt -u globstar
), this will list all files recursively:
echo **
For More info, you may visit This Link
and your following problem why not you use a limit to list file?
this command may help you
ls -U | head -4
add a comment |
up vote
0
down vote
Don't know if there are other commands, but you could combine ls
with other command like:
ls -la | less
which still lists your files but you can move up and down (and search) easily. less
does not load all the content (your 90GB) at once but it loads lines when you move around.
Or you can save output of ls
to a file to open it later
ls -la > my_files.txt
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
echo *
... will show files in the current folder through file globbing on Bourne compatible shells.
This lists all files down one level:
echo /
In Bash, if globstar is set (set with shopt -s globstar
, unset with shopt -u globstar
), this will list all files recursively:
echo **
For More info, you may visit This Link
and your following problem why not you use a limit to list file?
this command may help you
ls -U | head -4
add a comment |
up vote
2
down vote
echo *
... will show files in the current folder through file globbing on Bourne compatible shells.
This lists all files down one level:
echo /
In Bash, if globstar is set (set with shopt -s globstar
, unset with shopt -u globstar
), this will list all files recursively:
echo **
For More info, you may visit This Link
and your following problem why not you use a limit to list file?
this command may help you
ls -U | head -4
add a comment |
up vote
2
down vote
up vote
2
down vote
echo *
... will show files in the current folder through file globbing on Bourne compatible shells.
This lists all files down one level:
echo /
In Bash, if globstar is set (set with shopt -s globstar
, unset with shopt -u globstar
), this will list all files recursively:
echo **
For More info, you may visit This Link
and your following problem why not you use a limit to list file?
this command may help you
ls -U | head -4
echo *
... will show files in the current folder through file globbing on Bourne compatible shells.
This lists all files down one level:
echo /
In Bash, if globstar is set (set with shopt -s globstar
, unset with shopt -u globstar
), this will list all files recursively:
echo **
For More info, you may visit This Link
and your following problem why not you use a limit to list file?
this command may help you
ls -U | head -4
edited Nov 12 at 3:54
answered Nov 12 at 3:45
Antu
592319
592319
add a comment |
add a comment |
up vote
0
down vote
Don't know if there are other commands, but you could combine ls
with other command like:
ls -la | less
which still lists your files but you can move up and down (and search) easily. less
does not load all the content (your 90GB) at once but it loads lines when you move around.
Or you can save output of ls
to a file to open it later
ls -la > my_files.txt
add a comment |
up vote
0
down vote
Don't know if there are other commands, but you could combine ls
with other command like:
ls -la | less
which still lists your files but you can move up and down (and search) easily. less
does not load all the content (your 90GB) at once but it loads lines when you move around.
Or you can save output of ls
to a file to open it later
ls -la > my_files.txt
add a comment |
up vote
0
down vote
up vote
0
down vote
Don't know if there are other commands, but you could combine ls
with other command like:
ls -la | less
which still lists your files but you can move up and down (and search) easily. less
does not load all the content (your 90GB) at once but it loads lines when you move around.
Or you can save output of ls
to a file to open it later
ls -la > my_files.txt
Don't know if there are other commands, but you could combine ls
with other command like:
ls -la | less
which still lists your files but you can move up and down (and search) easily. less
does not load all the content (your 90GB) at once but it loads lines when you move around.
Or you can save output of ls
to a file to open it later
ls -la > my_files.txt
answered Nov 12 at 3:33
Canh
532318
532318
add a comment |
add a comment |
This sounds like a problem with your files system - you may want to empty some space on the partition and try again.
ls
has no problems with large directories.– Burhan Khalid
Nov 12 at 3:50
4
I'm voting to close this question as off-topic because it is better suited for
unix.stackexchange.com
.– Burhan Khalid
Nov 12 at 3:51