0
votes
1answer
25 views

problematic listing of folder with many files

In ubuntu I have a folder that contains many (~10M) .txt files (around 1-2KB each). Folder is not big by itself (around 400MB) and does not contain subfolders, just the .txt files. I need to list it ...
0
votes
1answer
32 views

Ignoree a specific file in file count “wc -l”

e.g. I have directory like ABC. And this directory contain following files (it contain number of files i just include 4 fils here) 2014-04-29T06-19-20_17368f93ce.mp4.uploaded ...
2
votes
3answers
71 views

Linux - Open nth File LIsted

I'm Ubuntu, I do ls and get a list of files. How would I open the nth file in the list in VIM in reference to its position from the ls command, and not its name? I want to do this cause a directory ...
0
votes
2answers
145 views

ls -l | wc -l output is different when redirected to a new file

"ls -l | wc -l" outputs "1+no. file/directories"(extra one for the first line). However when I run the command ls -l | wc -l > temp (when output is redirected to a new file temp). The value stored in ...
4
votes
1answer
719 views

List files beginning with underscores first when using `ls -l`

I'm using ubuntu (natty), and when I use ls -l, the files are listed, but apparently the sorting algo ignores any special characters. For ages I've used underscores to mark special folders. And it ...
2
votes
2answers
138 views

Where does the “l” command come from on my system?

My Ubuntu allows the use of l as a command to print out the current directory much like ls except that it is actually better in that it specifies which are folders, files, and executables. Is this an ...
6
votes
3answers
6k views

Recursive ls with conditions

Why can't I use a command like this to find all the pdf files in a directory and subdirectories? How do I do it? (I'm using bash in ubuntu) ls -R *.pdf EDIT How would I then go about deleting all ...
3
votes
2answers
4k views

How to sort ls by column in Ubuntu via piping to sort?

I'm a Linux newbie trying to learn how piping works in the Ubuntu terminal. I tried to sort by file size: ls -al | sort -k5 The files were listed in this order: drwx------ 19 min10 domain users ...
28
votes
5answers
29k views

what does the asterisk mean after a filename if you do ls -l

I've done an ls -l inside a directory, and my files are displaying like this : james@nevada:~/development/tools/android-sdk-linux_86/tools$ ll total 9512 drwxr-xr-x 3 james james 4096 2010-05-07 ...
5
votes
1answer
2k views

Ubuntu's ls can show unicode characters, but tree cannot, even with tree --charset unicode

Ubuntu 10.04's ls can show unicode characters, but tree cannot, even with tree --charset unicode or utf8. Is there a way to solve it. echo could interpret the escape characters except cat list.txt | ...
3
votes
3answers
861 views

Is there a tool on Unix, Linux, Mac, Windows, Ubuntu, that will list file / directory structure?

I wonder if there is a tool that will list file / directory (i.e. take a snapshot of the folder and file structure) like the following: audio mp3 song1.mp3 some other song.mp3 audio books ...
0
votes
6answers
4k views

Linux: list contents of sub directories with given name?

I'm using linux to analyze a windows directory structure. The structure is: /Documents and settings /username1 /My Documents ... /username2 /My Documents ... ... What command ...