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

learn more… | top users | synonyms

1
vote
1answer
34 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
29 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 >> ...
1
vote
2answers
195 views

What does the command ls -al do? [duplicate]

I'm a newbie in Ubuntu. Can someone describe what ls -al does? If possible, show an example.
0
votes
0answers
15 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
47 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
39 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 ...
1
vote
0answers
10 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
55 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 ...
0
votes
1answer
64 views

ls --color=auto is not working?

Why ls command is not showing color in Ubuntu 14.04.2? ...previously it worked... My alias report>> jharvard@appliance (~): alias alias cp='cp -i' alias gdb='gdb -q' alias ll='ls -l --color=auto' ...
2
votes
1answer
45 views

Why does 'echo *' give different results than 'ls *'?

For example, if you are in home directory and type ls *, you will have all the directories listed, and below the name of the listed directory, the files that it contains. On the other hand, if you ...
7
votes
2answers
2k views

Difference between ls -l and ll?

I'm relatively new to programming as a whole and some tutorials have been telling me to use ls -l to look at files in a directory and others have been saying ll. I know that ls is a short list, but is ...
0
votes
0answers
7 views

getting countbroken>0; won't update

running Ubuntu on an WIN7 Inspirion, that will not boot up. Ubuntu has been working ok, till a few weeks ago. It wouldn't update software. Error was COUNTBROKEN>0. (or BROKENCOUNT>0) Would appreciate ...
0
votes
2answers
380 views

Does the ls command work differently on a (ubuntu 14.04.10) server? I can't figure out how to explore my files

all. Very new to linux, but I thought I understood file exploration from the command line. The problem: I can't figure out how to navigate my files or directories, the console isn't displaying any ...
0
votes
1answer
419 views

Why do I not see my /bin, /var, (etc.) directories in my root partition?

I recently bought a VPS and when I log in as a root user, I dont see the /boot, /bin, /var, etc. directories. Why is this? This is what I see when I use my ls -la command in the terminal. I am the ...
0
votes
0answers
40 views

ls command not showing latest file

I just did a mysqldump on my Ubuntu EC2 server. If I browse the directory in Filezilla, I can see the dump file, but not when I run the ls command in terminal. Why is this happening?
1
vote
1answer
42 views

Finding files in sub directories

Still a newbie. Using a clean machine, purchased from System 76 with Ubuntu 14.04 LTS installed. Got it mid-May of 2014. Why can't I find files in the current and its subdirectories? I've tried ...
0
votes
1answer
37 views

Long listing a Directory

2 Questions: 1) How should I long list a directory. Kindly guide me if there's are multiple options to do this .? 2) How do I sort based on the file size?
2
votes
1answer
28 views

Longlisting Files & Directories

I would need to know if there's a way to differentiate files & directories . Note : Without using longlisting
1
vote
4answers
168 views

Selecting from list like array (without name by number)

After I ls and see the list, is there anyway to process a document without typing its name? For example instead of typing rm damnSoLongFileName, can I type something like rm [1]? I mean is there ...
1
vote
2answers
112 views

ls to show dates and times in UTC

How do I get the ls command to show its dates and times in UTC, instead of localtime? I don't want to permanently change the local time for my system to do this.
0
votes
0answers
18 views

new user problem loading brother driver dcp-340cw

when running linux-brprinter-installer it finnishes with "Error csh ls required" can anyone help? just loaded ubutu 14.04 (lost windows 8,1) very new to linux
1
vote
1answer
49 views

The colors when doing “ls” at my ubuntu server diappeared just like that

OK I know it's a super stupid question but driving me crazy! I just had new 14.10 VPS setup and while setting up some basic initial stuff in the terminal out of sudden "ls" command stopped showing any ...
1
vote
2answers
66 views

Open directory from ls result

I have a problem, I would like to pipe ls and cd together. I create shell pipe like: cesta = ls -lat | awk 'NR==2 {print $8"/"}' cd $cesta But it doesn't work. Could you help me. And I didn't ...
0
votes
0answers
54 views

Nautilus shows different permissions (than `ls`) for linked directory

I'm using Ubuntu 12.04 and i have changed one of my folders permission . when i do ls -al in that directory it shows me : total 48 drwxr-xr-x 6 root root 4096 Nov 3 05:14 . drwxr-xr-x 30 root ...
0
votes
3answers
53 views

Hiding “*_files”

When I download web pages complete, I get the html file plus a folder with an _files name. So every time I ls I get a list of all those files. Renaming is a drag. How can I get those out of ...
6
votes
1answer
695 views

ls command is only showing files, and no folders (spaces? instead of them)

Today I typed ls command in my home directory, and it only showed "examples.desktop" and not the folders. But in the past, it showed all the folders like Documents and Downloads. What is the problem ...
0
votes
1answer
43 views

“-k” option for “ls -l” commnad

I can not use "-k" option for ls -l commnad. -k, --kibibytes use 1024-byte blocks There is an option explanation in man ls like above. So I guess that this option is valid. However, ...
1
vote
2answers
100 views

Efficient way to get last modified/created files

I have a folder that has a lot of files (various logs generated by a website). Managed to count them with: $ find . -maxdepth 1|wc -l 803313 Now I need to check the logs in the past few days. ...
7
votes
6answers
17k views

How to list all symbolic links in a directory

I have a symbolic link in my /var/www/ directory that links to WordPress. When I run the command ls -la from the /var/www/ directory the link to WordPress doesn't show up. Is there a way to list all ...
0
votes
0answers
258 views

ls command not working in ubuntu 14.04

I was trying to use ls command in my ubuntu 14.04 but it keeps on showing the following error, ls: unrecognized option '--color=auto' BusyBox v1.21.1 (Ubuntu 1:1.21.0-1ubuntu1) multi-call binary. ...
0
votes
0answers
22 views

can anybody explain what ls -l do? [duplicate]

can anybody explain what ls -l do? I'm new to command line functions so simple explanation would suffice. Thank you. For my reference the results I get when I typed ls -l was: drwxrwxr-x 3 student ...
0
votes
2answers
439 views

What does 'ls -al' do?

When I entered the -al attribute with the ls command, I got the following: anupam@JAZZ:~/blog$ ls -al total 76 drwxrwxr-x 13 anupam anupam 4096 Aug 28 21:45 . drwxr-xr-x 34 anupam anupam 4096 Aug 28 ...
7
votes
1answer
4k views

exclude certain files in ls

I would like to run ls and exclude certain files in the output. When I run the following command, I get all files with each on one line: $ ls -1 file1 file2 file3 temp I would like to run this ...
1
vote
3answers
48 views

How do I djvubind on ls and grep result?

How do I djvubind only files that are in ls | grep -P "page\\d\\d\\d.tif"?
0
votes
2answers
2k views

terminal ls command not showing all files

I'm familiarizing myself with the terminal, and trying to use the ls command is the directory /usr/bin. Unfortunately, it doesn't show me everything in the folder, the terminal cuts it off. How ...
1
vote
1answer
61 views

Sorting files by ASCII conventions in Ubuntu 14.04

This has been an incredible annoyance for me because it should be so easy to fix!!! I want ASCII conventions to be applied when sorting files (both in the terminal and in nautilus) because the ...
7
votes
3answers
134 views

List files appended with an order number

Is there a quick way to list all the files from a location having an appended order number? something like: ls -a generates the result: 1 file a 2 file b ... 100 file whatever Thanks. P.S. ...
-1
votes
1answer
77 views

list directory name of symbolic link

I am trying to find all the symbolic links on my system with name keytool. I use the below command : ls -lR | grep keytool It gives some results, but i want the directory names as well. So i use ...
0
votes
1answer
27 views

before.rules date [closed]

I can't figure out why one of my before rules file has a date that is in the future. Today's date is July 3rd but the file time stamp states Jul 6. Below is the output from ls -l in the /etc/ufw ...
-5
votes
5answers
303 views

List hidden files without using - ( * | [closed]

Is it possible to list hidden files without using the characters mentioned above? This means not using any options or the * wildcard as well as some other characters (e.g this is not allowed "ls -a", ...
3
votes
2answers
764 views

ls on home directory very slow

A while ago, I accidentally created hundreds of thousands of files in my home directory which I subsequently deleted. Since then however, running ls in my home directory has been extremely slow ...
2
votes
2answers
1k views

ls system command not showing terminal colors

I've just been fooling around with some code in C, an example of a really basic program is as follows which just, obviously, lists the directories using the ls system command. #include ...
1
vote
1answer
42 views

Changing current directory to directory that have identifier as the substring

My terminal is currently in the home directory, and the home directory contains a directory which have "round" as the substring. Is there any way to directly change to that directory without typing ...
17
votes
9answers
32k views

How to show only hidden files in Terminal?

I have a directory that contains thousands of files, some of them are hidden. The command ls -a list all files, including hidden ones, but I need just to list hidden files. What command should I ...
1
vote
1answer
144 views

What does ? in output of ls -la mean?

I'm having trouble with my webserver an noticed that the output of ls -la /var/www contains irregularily ? instead of permission digits, e.g. $ LANGUAGE=C ls -la /var/www/ ls: cannot access ...
7
votes
2answers
8k views

How do I change the color for directories with ls in the console?

On my console the color for directories is such a blue, that it is hard to read on a dark background. How can I change the color definitions for ls?
1
vote
1answer
68 views

Find files in a directory and list them

I'm in a directory containing several sites directories. All these sites have a logs/ directory. I wish to find and list the files under each logs/ directory with the -ls parameter.
4
votes
6answers
6k views

Count total number of files in particular directory with specific extension

I want to count the total number of files in particular directory that ends with ".mp4" extension. I am getting following command: ls -F |grep -v / | wc -l It count all the files in particular ...
-1
votes
1answer
69 views

“How would you use the ls command to display all of the files/directories in the directory ‘/sbin’ that start with ‘az’? ”

I could do this on my own if I was in the /sbin directory, but I cant seem to figure out how to do this form the parent directory.
1
vote
1answer
98 views

One command for ls and cat functionality?

Okay guys, this is an experimental question warning! I often confuse cat and ls when quickly working on the console. Not because I forget their meanings, no. Just because I type without deeply ...