Score:0

How can I use C-n and C-p as shortcut in ncdu

id flag

I am using ncdu - NCurses Disk Usage on a Linux server node through CLI.

  • OS: Ubuntu 20.04.6 LTS , Kernel: Linux 5.11.0-43-generic
  • ncdu 1.14.1

I get used to Emacs keybindings and I never use arrow keys. After running ncdu I can only move arround using arrow keys in the list of files but I cannot use C-n and C-p as for down and up keys respectively.

Is it possible to bind use C-n and C-p as arrow keys in ncdu?

alper avatar
id flag
Yes sir I am using Ubuntu. Oh no! I haven't released the kernel is depreciated thanks for the heads up.
guiverc avatar
cn flag
The 5.11 kernel stack was from Ubuntu 21.04 (it stopped getting patches when [21.04 reached EOL](https://fridge.ubuntu.com/2022/01/21/ubuntu-21-04-hirsute-hippo-end-of-life-reached-on-january-20-2022/); but updated LTS systems had it replaced with 5.13 from 21.10 which then moved to 5.15 from 22.04 LTS... ie. your system is using an *unpatched* sand *unsecured* kernel that isn't supported; as stated before the GA kernel stack was 5.4 & HWE is now 5.15 - those are what get security patches (plus some OEM options I mentioned but your kernel version doesn't show).
alper avatar
id flag
Should I try to update it to `5.15` without crashing the system? or to the latest version which seems like `v6.3.1`? and sorry that the commens out of the scope of the Q.
guiverc avatar
cn flag
I would suggest staying with *supported* upgrades for your existing system; Ubuntu 20.04 LTS had two primary supported kernel paths; GA for servers wanting the most *stable* option or 5.4 for the life of the product, or HWE for those using newer hardware & wanting newer graphics stacks... plus some OEM options.. 6.3 isn't a supported kernel for *focal* or 20.04. You've taken on applying security fixes yourself having moved away from a *supported* kernel stack. https://wiki.ubuntu.com/Kernel/LTSEnablementStack
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.