Questions tagged [ls]
Questions relating to the Linux 'list' command (ls)
392 questions
3
votes
0
answers
36
views
How to make ls sort order case insensitve in Ubuntu 25.10? [duplicate]
I'm using Ubuntu 25.10.
How do you make ls sort order case insensitive? For example, when I do "ls -l", I get this:
$ ls -l
total 24
drwxrwxr-x 2 menmonic mnemonic 4096 Oct 19 09:13 Apples
...
0
votes
0
answers
85
views
"ls -al" at NFS server lagging while rsyncing
I am using ubuntu-22 servers. The /storage directory in my "server A" is mounted to an NFS server. The problem is, when I execute the rsync command like
rsync ./downloads/* /storage
the ls -...
1
vote
1
answer
93
views
What is this new grey color for files type?
After I upgraded to 24.04 I saw some files with new ls color in terminal, e.g. grub.ucf-old or grub.ufc-dist.
What are these? ls just shows them as standard files, they open as text files and they do ...
0
votes
1
answer
71
views
Keyboard shortcut for ls -l command?
I would like to know the ls -l command shortcut, because ll is showing in my terminal as a shortcut to ls -al.
0
votes
1
answer
278
views
What is the difference between dir and ls in Linux? [duplicate]
What is the difference between dir and ls? Because both of them are listing a directory and when i saw the help of both. That were same. And also i have found it on this forum but i did not understood ...
4
votes
5
answers
2k
views
Why is the . directory not created at the current time that I installed Linux?
I installed Linux this Feburary. Now when I listed the home directory with ls -la, why is the time being shown like this:
drwx------ 20 chuck_user chuck_user 4096 Jul 5 2024 .
Why is the time ...
0
votes
0
answers
25
views
Different sizes with ls -sh of the same dir? [duplicate]
From inside a directory My_dir I get the content size with ls:
$ ls -sh
total 386M
94M Kammermusik_Nocturne_chnl1.wav 94M Kammermusik_Nocturne_chnl3.wav 11M Kammermusik_Nocturne_stereo-mix.mp3
94M ...
-1
votes
1
answer
229
views
How to solve ls cannot access?
When I use ls -al $HOME/.local/share/gnome-shell/ it's no problem, but when I use ls -al $HOME/.local/share/gnome-shell/extensions/ it will apear the text ls cannot access. I search in many website, ...
0
votes
0
answers
128
views
Broken symlinks on LXC mountpoints are not colored red in `ls`
My Ubuntu 22.04 runs in an LXC on Proxmox, its ls has no colors
I added an alias ls="ls --color=auto" and that colored folders/files differently
Proxmox uses ZFS as its filesystem which ...
0
votes
0
answers
279
views
chocking rights on directory with command ls -l gives total 0
I'm trying to understand why a NAS cannot be mounted. When i run this mount command i have :
mount -t cifs //10.XX.XX.XXX/Dir1 /nas -o credentials=/config/cred,uid=$(id -u),gid=$(id -g),vers=3.0
...
4
votes
2
answers
1k
views
ls -la gives strange output
What could be the reason for this?
0
votes
0
answers
1k
views
ls and find give "invalid argument" when passing no argument
I have an external hard drive, formatted with NTFS. On it I have one folder with about 100,000 files, totalling about 140GB (excluding overhead).
I'm finding that I can no longer list the files in the ...
-1
votes
1
answer
693
views
How to obtain a list of all the files recursively without listing the directories to which the files belong and sort the list of files alphabetically? [duplicate]
I only managed to list the directories themselves with ls -a or the files sorted by directory with ls -aR
1
vote
0
answers
1k
views
Changing LS_COLORS in Ubuntu 22.04 works in terminal but not permanently in .bashrc
I am learning linux thoroughly, I have downloaded my first VM with vmware-fusion on my mac m1.
I have tried many times to update the .bashrc file but the one thing that is not changing for some reason ...
0
votes
2
answers
787
views
Issue with touch -t command when setting specific dates
I'm encountering an issue when using the touch -t command in the terminal. My goal is to adjust the access and modification dates of a file named "testShell00" to a specific date in the ...