Skip to main content

New answers tagged

1 vote

In bash/zsh, how to compare the metadata in two directories including . and excluding .. and the contents inside subdirectories?

-a lists all directory entries, that includes . and .. on systems where readdir() / getdents*() include them. Here, you could run ls twice, once for . with -d (ls -ld . will work even on systems where ...
Stéphane Chazelas's user avatar
1 vote

In bash/zsh, how to compare the metadata in two directories including . and excluding .. and the contents inside subdirectories?

Presumably you're using GNU ls, in which you can omit only .. by using the --ignore/-I option: % ls -la --full-time total 12 drwxr-xr-x 3 muru muru 4096 2024-06-25 11:14:18.165432064 +0900 . drwxr-xr-...
muru's user avatar
  • 73.8k
0 votes

Do we need to memorize every command of Linux OS Terminal Shell?

Make your own cheat sheet. The process of doing it yourself will enhance the memorization effectiveness. Plus it will only list the commands YOU encounter/use/need.
Bogey Jammer's user avatar
0 votes

Do we need to memorize every command of Linux OS Terminal Shell?

I suggest you learn and memorize gradually by simply using the terminal as much as you can. It takes time. I also recommend getting familiar with the apropos and man commands. To me personally, it's ...
astrochicken's user avatar
-1 votes
Accepted

Do we need to memorize every command of Linux OS Terminal Shell?

Use Harry Potter as an example, they know lots of spells and the more you know the more powerful wizard you are. You can cheat of course, nobody knows all commands but you need to have an idea, what ...
ptr's user avatar
  • 754
1 vote

How do I get "ls -l" to show me group names instead of numbers (git bash)

As an alternative to changing the nsswitch.conf you can also create the file /etc/group (as root) with the following content: Users:x:5235961: Where Users is a name of your choice and 5235961 is the ...
Karatstein's user avatar

Top 50 recent answers are included