Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

ls

Why are reboot, shutdown and poweroff symlinks to systemctl?

August 10, 2022 by Magenaut

In Arch Linux, if I do ls -l in /sbin, I can see that reboot, shutdown and poweroff are all symlinks to /usr/bin/systemctl. But issuing reboot, shutdown and systemctl commands obviously does not all have the same behaviour.

Categories Q&A, Unix & Linux Tags arch-linux, ln, ls, reboot, symlink Leave a comment

Why does “ls -all” show time for some files but only year for others?

August 10, 2022 by Magenaut

If you issue ls -all command some files or directories have the year and some have the time? Why do some show the year while others show the time? Is the time representative of the time the file was created?

Categories Q&A, Unix & Linux Tags ls Leave a comment

execute command on a defined range of directories

August 9, 2022 by Magenaut

Is it possible to ‘partition’ a directory listing – say in to blocks of some number, to perform different actions on each ‘range’?

Categories Q&A, Unix & Linux Tags bash, indexing, ls Leave a comment

How to get only files created after a date with ls?

August 9, 2022 by Magenaut

With the ls command, is it possible to show only the files created after a specific date, hour…?

Categories Q&A, Unix & Linux Tags ls Leave a comment

Why does “ls” take extremely long in a small directory that used to be big? How to fix this?

August 9, 2022 by Magenaut

I’m running Arch Linux, and use ext4 filesystems.

Categories Q&A, Unix & Linux Tags bash, ext4, ls Leave a comment

Why does “ls | wc -l” show the correct number of files in current directory?

August 9, 2022 by Magenaut

‘-1’
‘–format=single-column’

Categories Q&A, Unix & Linux Tags ls, wc Leave a comment

How do I make ls sort underscore characters first?

August 9, 2022 by Magenaut

I like being able to name files and directories with an underscore prefix if it’s something I want to keep separate from other files and directories at the same level. On Windows and Mac, for example, prefixing a file with an underscore sorts it to the top, in front of files starting with an alphanumeric character.

Categories Q&A, Unix & Linux Tags locale, ls, sort Leave a comment

List files larger than {size} sorted by date

August 9, 2022 by Magenaut

I want to solve the problem ‘list the top 10 most recent files in the current directory over 20MB’.

Categories Q&A, Unix & Linux Tags find, ls Leave a comment

Find directories that do not contain subdirectories

August 9, 2022 by Magenaut

I’m writing script is ksh. Need to find all directory names directly under the current directory which contain only files, not subdirectories.

Categories Q&A, Unix & Linux Tags directory, find, ksh, ls, shell Leave a comment

What is “total” in the output of “ls” command?

August 8, 2022 by Magenaut

I have an empty directory. I am using following command to view the contents of that directory. ls -lart The output I get is below. total 12 drwxr-xr-x 5 root root 4096 Oct 2 12:26 .. drwxr-xr-x 2 apx aim 4096 Nov 29 18:40 . I don’t have any files in this directory, then what … Read more

Categories Q&A, Unix & Linux Tags ls Leave a comment
Older posts
Newer posts
← Previous Page1 Page2 Page3 Page4 … Page6 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress