Love "tldr" on all my linux machines, so figured I would install it on Proxmox VE, which is just Debian 11 after all.
Doesn't seem to work, tldr pages aren't available
So did some googling, and tried to update the local cache of pages (which usually isn't needed). But that seems broken too...
So I gave it a helping hand...
And now it seems to work just fine:
I realize I kind of found my own solution, but I'd like to try and understand why this doesn't work as it should.
Doesn't seem to work, tldr pages aren't available
Code:
root@red:~# apt install tldr
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
tldr
0 upgraded, 1 newly installed, 0 to remove and 22 not upgraded.
Need to get 529 kB of archives.
After this operation, 2,899 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian bullseye/main amd64 tldr amd64 0.6.4-1+b2 [529 kB]
Fetched 529 kB in 0s (1,879 kB/s)
Selecting previously unselected package tldr.
(Reading database ... 58695 files and directories currently installed.)
Preparing to unpack .../tldr_0.6.4-1+b2_amd64.deb ...
Unpacking tldr (0.6.4-1+b2) ...
Setting up tldr (0.6.4-1+b2) ...
update-alternatives: using /usr/bin/tldr-hs to provide /usr/bin/tldr (tldr) in auto mode
Processing triggers for man-db (2.9.4-2) ...
root@red:~#
root@red:~# tldr ls
No tldr entry for ls
root@red:~#
So did some googling, and tried to update the local cache of pages (which usually isn't needed). But that seems broken too...
Code:
root@red:~#
root@red:~# tldr --update
tldr: /root/.local/share/tldr: createDirectory: does not exist (No such file or directory)
root@red:~#
Code:
root@red:~# mkdir -p ~root/.local/share
root@red:~#
root@red:~# tldr --update
Cloning into 'tldr'...
remote: Enumerating objects: 67190, done.
remote: Counting objects: 100% (2/2), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 67190 (delta 0), reused 1 (delta 0), pack-reused 67188
Receiving objects: 100% (67190/67190), 16.66 MiB | 13.66 MiB/s, done.
Resolving deltas: 100% (41042/41042), done.
root@red:~#
root@red:~#
And now it seems to work just fine:
Code:
root@red:~# tldr ls
ls
List directory contents.More information: https://www.gnu.org/software/coreutils/ls.
- List files one per line:
ls -1
- List all files, including hidden files:
ls -a
- List all files, with trailing / added to directory names:
ls -F
- Long format list (permissions, ownership, size, and modification date) of all files:
ls -la
- Long format list with size displayed using human-readable units (KiB, MiB, GiB):
ls -lh
- Long format list sorted by size (descending):
ls -lS
- Long format list of all files, sorted by modification date (oldest first):
ls -ltr
- Only list directories:
ls -d */
root@red:~#
I realize I kind of found my own solution, but I'd like to try and understand why this doesn't work as it should.