Questions relating to the Linux 'list' command (ls)

learn more… | top users | synonyms

0
votes
1answer
26 views

Can't execute this file

I can't execute the skype file. I have the permissions I need. What's the meaning of filename* in the ll output?
0
votes
1answer
24 views

what do the columns in 'ls -l' mean? [duplicate]

I am looking specifically for the second column and how to change it. I know it has something to do with owners or groups but I cannot find a direct definition of what it means
4
votes
3answers
172 views

Size of device file ( missing in ls -l output )

When I try to print the device file output shows binary data in hexadecimal format. But upon doing a ls -l /dev/sda I get: brw-rw---- 1 root disk 8, 0 Jan 29 12:29 /dev/sda I don't ...
0
votes
1answer
28 views

What do these files mean and how should I replace?

In order to get into Symphony framework I had to install Virtual Box (VB) and Vagrant and SSH into the Ubuntu system I created with the default values of Puphpet. In order for my application to work ...
0
votes
1answer
22 views

5030 in ls output.?

I am getting the following in the output of ls for the home directory of arcsight user. drwxr-xr-x 2 5030 tspplatformadmin 4096 2016-01-28 02:51 arcsight What I expected the output to be: ...
1
vote
1answer
30 views

Meaning of “b” and “c” in file privileges description (output of ls -l)

Basic question regarding the ls utility. What do letters "b" and "c" mean at the beginning of the 10-symbol code describing the item privileges ? From what I understand, when typing ls -l, the ...
0
votes
1answer
41 views

Display the name of all files with home directory which is smaller (in size) than 10 KB but bigger than 5 KB

Display the name of all files with home directory which is smaller (in size) than 10 KB but bigger than 5 KB. using Linux comand. pls help me
1
vote
3answers
43 views

ls command to view particular string in filename within directory

I have bunch of files in one directory. I want to list specific files within this directory whose name as follows; stacov_abcd0230.15o stacov_abcd0240.15o stacov_ab120240.15o stacov_01020240.15o ...
2
votes
1answer
86 views

why ls -a command showing file name in red color? [duplicate]

As shown in the above picture, When I do the command ls -a is one specific file name in red color. Why is it so?
3
votes
1answer
40 views

How do I sort the output of “ls” by last modified - including the date?

So the output would be either: Most recent at the top OR most recent at the bottom - giving the times when the contents of the working directory were modified? Apparently, ls -t is supposed to give ...
0
votes
1answer
37 views

ls - filtered list - total size

I'd like to list all the files beginning with z, have their individual filesize, and the total size in the bottom of the list (so I don't have to scroll up like with ls -s). DOS equivalent : dir z* ...
4
votes
2answers
513 views

What does each part of the `ls -la` output mean? [duplicate]

What do the following numbers represent?
12
votes
1answer
685 views

What are those 'x xx' in 'ls -l' command

When performing ls -l I encountered a column I don't recognize. drwxrwxr-x 7 user user 4096 × ×× 29 13:54 .eclipse drwxrwxr-x 3 user user 4096 × ×× 30 09:30 workspace drwxrwxr-x 3 user ...
7
votes
4answers
504 views

List all recently changed files (recursive)

So, I want to display (via ls for example) all files, which were changed in the last seven days. If I'm in my docroot-folder, it should be able to look "deeper". For example: File Last ...
1
vote
2answers
68 views

counting in directory

I would like to know what the difference is between: $ ls | wc -l and $ ls > foo $ wc -l < foo when counting all files in the current directorys. And why does the second one gives me one ...
7
votes
3answers
535 views

Listing files with grep?

I have a directory that contains the following files: file1a file1ab file12A2 file1Ab file1ab I want to list all files that start with file1 and followed by two letter at most! The solution I ...
-1
votes
5answers
103 views

How to get a new line at the end of pipe command

I want to write a piped sequence of commands which prints out a list of all the subdirectories of the given directory, and printed in one line, following a new line. I'm having trouble to make the ...
6
votes
4answers
335 views

is there ls -l numeric formating?

consider the output of this ls -l command: $ ls -l /usr/bin | tail -rwxr-xr-x 1 root root 105696 Oct 25 2014 zenity -rwxr-xr-x 1 root root 188296 Oct 21 2013 zip -rwxr-xr-x 1 root root ...
0
votes
1answer
50 views

What does the ~ symbol mean next to the files that are listed with ls? [duplicate]

I created a file named xxx on my Desktop and then I (re)moved it using terminal. Now when I execute ls on Desktop I see a file named xxx~ that is not visible at GUI. What does it mean?
5
votes
3answers
691 views

found ls binary using whereis but can't find ll why?

found ls binary using whereis but can't find ll why ? How to find where ll binary loacted ? I found "ls" binary using "whereis" but can't find "ll" $ whereis ls ls: /bin/ls ...
2
votes
2answers
374 views

ls vs. ls -C difference

commands ls and ls -C seem to produce the same results - display by columns. Is there any difference?
1
vote
2answers
30 views

ls -d not doing what I'm told it should

Ubuntu 14.04 LTS Straight machine, no dual boot or anything. I am in ~/scratch I want a list of directories only. tree -dL 1 Got it! man ls says: -d List directories only instead of their ...
0
votes
0answers
30 views

Why isn't my ls not changing colors?

For some reason I can't change the colors of the following file extensions. Here is what I added to the end of my ~/.bashrc file: alias ls-"ls --color=auto" LS_COLORS=$LS_COLORS:"*.pl=32:*.lua=35;41" ...
28
votes
2answers
2k views

Why do I get a train when I run 'ls'?

I have recently noticed something odd that I don't like very much: So why am I getting a train upon running ls? And how can I stop this and make it behave normally? Is this an Easter Egg that I ...
-1
votes
1answer
63 views

why does ls -Z returns files names with question marks next to them?

why does ls -Z returns files names with question marks next to them? And what does this command do?
0
votes
1answer
112 views

What does `ls /` do? [duplicate]

Running the ls / command some files are coming out; What are those files? They are not even directories. Output of ls /: bin dev boot etc cdrom media mnt home lib lib64 proc root
1
vote
1answer
31 views

help needed understaning ls format meaning

I hit l this evening while compiling some things, and got some unexpected output. $ l l3* lesson03.cpp lesson03.o look.png readme.txt so then I looked at alias: which lists l as: alias l='ls ...
0
votes
2answers
187 views

What does the 4th column in ls -l mean

column 1 defines type of file and file permissions.** column 2 defines - i d k column 3 identifies owner of the file column 4 identifies - a user but not sure of the association column 5 file size ...
0
votes
2answers
42 views

list files or dirs starting with 'jre'

I need to list files and dirs with names starting with jre (small and capital letters are allowed). When I execute: ls | grep jre ...it greps just low capital letters and gives output with jre not ...
3
votes
3answers
333 views

Why does the ls command show deleted files?

When I type ls in the terminal, it shows the files that are present as well as the files that I have deleted. How can I see the current files only, and why does ls keep a record of deleted files? ls ...
1
vote
2answers
122 views

The foreground color changes after `ls` command

I change shell's foreground color with echo -ne '\e[1;31m' command but when I execute ls command the foreground color reverts back to the original previous color. This weird behavior doesn't occur ...
2
votes
4answers
136 views

how can I List files in order

I had an 18GB file I needed to download on a less than great Internet connection. Torrenting wasn't an option. So I busted up the file into 100 segments, and eventually, all of it downloaded. Now I ...
0
votes
1answer
69 views

Deleting an embedded string in a text file with grep or anything else via terminal

I have a text file and would like to remove '/d0/' '/d1/' ... '/d5/' from the each line of text. I know I can ls the files with '/d*/'. I figure it is grep -vE '//d*// filename > filename ...
0
votes
2answers
137 views

Is there any command line to show tree view directory? [duplicate]

Many tutorials depict tree-view directory to show how they organize their files. Is there any command line to show such view? Is ls capable to do this?
1
vote
2answers
61 views

When I run ls on my usb drive, every file is in the green text of executable files. Why is this?

The files are those for general consumption for the most part, pictures, documents, pdfs, etc/
2
votes
1answer
1k views

Difference between ls -l , ls -ltr and ll?

When i am using these commands , i am getting the same output but only order is getting changed for ls -ltr command. Can anyone please tell me what is the difference between the below commands? ll ...
2
votes
3answers
167 views

ls command by default is showing one line per file? How to change it?

When I call the ls command, I expect it to show all the files/directories in the current directory, attempting to fit as many as possible on each line. But, somehow it is showing one file per line. ...
2
votes
2answers
114 views

How to list all files in a hard disk with 'find'?

I'd like to list all the files in HDD including size, last modified date and absolute path. idea format : [file size] [last modified date] [absolute path] [ filename] I tried: ls -lhR | awk -v ...
7
votes
3answers
880 views

What does the “size” of a symlink represent in ls output?

I'll start by example: $ ls -l dir1 total 4 -rw-r--r-- 4 maythux maythux 1650 2008-01-10 16:33 file lrwxrwxrwx 1 maythux maythux 7 2008-01-15 15:17 symfile -> file symfile is a symlink of the ...
1
vote
1answer
76 views

List files/direcotries according to their modification time

How can I list files or directories according their last modification time either in ascendant or descendant way ?
1
vote
3answers
224 views

How do I direct a file to be stored in a different folder?

So I'm trying to direct a file to be created in another folder (let's say on my Desktop) from my bin directory. I made a text file with all the files in the directory using ls > textfile but this ...
-2
votes
2answers
73 views

Command to list only output files of gcc operation? [closed]

I have a directory with many c programs and some other files. After performing gcc -o output_name filename.c on c files i have respective output files in the same folder. What terminal command and ...
3
votes
2answers
375 views

locate command finds a file's path, but the file does not exist in that path [duplicate]

I have written: locate Origin90SR2DVD.iso And I received the path where that file is located: /home/david/Origin90SR2DVD.iso Then I have written: cd /home/david I have run: ls -lrth And ...
1
vote
1answer
98 views

How can I list mp3 files that have a leading period?

I have mp3 files in a directory. For this example, let's assume they are these 3: Enter Sandman.mp3 ...And Justice For All.mp3 St. Anger.mp3 How can I list (ls is highly preferred) all ...
-3
votes
2answers
175 views

What does this mean in my program? -exec ls -s {} [duplicate]

-exec ls -s is part of my program just want to know what does -s {} mean. This is my whole program, I know what it does: find $root -type f -exec ls -s {} \; | sort -n | tail -n 15 >> ...
0
votes
0answers
18 views

Looking for info on the output of “ls -l” [duplicate]

So I used ls -l on a directory of mine. The output was this: What does the single number in the second row mean and how can it be changed? I could not find info about this in man pages.
0
votes
1answer
132 views

ubuntu folder permission changed to drwsrwsrwt and nautilus shows files and terminal doesn't

I am having wierd situation. I am using ubuntu 14.10. I can open all directories in nautilus but when I try to list files in terminal, only one directory get listed. I can traverse through the ...
2
votes
1answer
235 views

Recursive directory listing of /proc

I'm trying to obtain a recursive directory listing of my filesystem using the command $ ls -alRc from root directory. Everything is running fine except the /proc directory listing, which results ...
2
votes
0answers
56 views

browse images in the same order by ls or nautilus?

I sort the images in a dir according to some order (e.g. their timstamp) in nautilus, and then I wonder how to browse them in the same order in eye of gnome or some image viewer? Similarly, If I ...
0
votes
4answers
575 views

Shouldnt .bashrc run every time I log in?

Newish to Ubuntu so forgive if I word things oddly... All I really want to do is have my ls command changed to ls --color=always -ragX Got that solved... Alias will do nicely. Now, to have that run ...