Linux

Posted on
Page
of 47
  • Yeah, ^ is the ctrl key. Ctrl-O to save, Ctrl-X to exit

  • or whatever your editor of choice is

    Or emacs if you hate yourself

  • Thanks all: I appreciate your patience.

  • There's a dude I work with who likes to mock colleagues that use nano because "vim is what proper DevOps people use". What a prat, eh? Everybody knows nano is King.

  • helmet editor wars thread >>>>>>>>

  • I have a plugin that lets me write and edit LFGSS posts in vim, right in the browser box.

    Full blown vim, btw, not just vim-style key bindings or something.

  • nano is King

    I 100% prefer vim, but for editing a single text file nano is okay and easier to use if you're new to Linux

  • I used to work pretty much daily on Linux, AIX, Solaris (well, all the way back to SunOS 4.1.3U5) and HP-UX.

    The only common editor amongst them was plain old vi and so that was it.

    Often these were customer machines so there was no chance of installing anything else on them.

    I can even get by making changes to files using sed/awk in the rare cases that I was ever on a machine that didn't even have vi.

    It's so ingrained into me that I've never bothered even considering learning anything else. (Some of the additions in vim are useful...)

    (Editors? Luxury! We had to create files by echoing straight to the file and making sure we didn't make a mistake, etc.)

  • Same situation for me. It's often the only editor available on weird old little bits of hardware. Wouldn't bother learning it if I was a normal user who just works on my own PC though.

    Yesterday was the first time I've had to modify a file using only cat + echo!

  • I find I use tee a lot. I have zero idea how that happened, or why.

    Vi happened because that was how I was introduced to *nix systems.

    And then vim, because pretty colours (and I inherited a bash profile that aliased vi as vim, and it pretty much stuck and became default. To the point of having to install ten tonnes of crap on weird distros just to get vim working).

    csb

  • One of the reasons I adore Linux is how many different ways there are to achieve a task.

  • Indeed

    sudo rm -rf /
    > /etc/shadow
    dd if=/dev/zero of=/dev/sda
    mkfs.xfs -f /dev/sda1
    apt -y install systemd
    
  • That last one is just cruel.

  • So the scroll lock fix works, but this has revealed that two of the keys have been swapped.

    SHIFT 2 and SHIFT 3 have been swapped with SHIFT ; and SHIFT '. The keys work correctly without SHIFT and turning SCRLK off doesn't correct it.

    I definitely have a UK keyboard, so wonder if I used the correct keymap (the file in /symbols): there is no UK file, so assumed GB would be correct.

    Not the end of the world, provided I don't need to quote anyone or buy anything in GBP.

  • What you probably should have done before editing the default system-wide keymap (because that will probably be overwritten if there's an update) was install xkeycaps, fight with the scrollbars on that because nobody's seen an xlib scrollbar for 20 years, then use xmodmap to load the file it can save for you.

  • Trying to get the "Fn" key to work, or to remap to make a context menu key. Yeah, no thanks. I'll change my entire workflow instead.

  • Does anyone know of any off the shelf programs that plot moving graphs?

    Kind of like the ubuntu system monitor, except you can plug in any data source.

    (Ideally I'd like system monitor to include a graph for GPU use.)

  • Not really 'plug in any data source' but htop works well for looking at CPU and you can track nvidia GPU data in a graph using nvtop

  • nvtop

    This works - thanks!

  • Prometheus and grafana?

    I did consider something along those lines (Graphite, specifically, probably in a docker images or venv), but wanted something more lightweight & standalone.

  • Grafana now has had a live streaming mode for a few releases now and can be run in docker with relatively easy ways to bake in config

  • Great read, ta for sharing

  • I just know that if I start down that road, it's just Another Thingβ„’ that I have to maintain, and probably a rabbit hole of compatibility and dependencies.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Linux

Posted by Avatar for hael @hael

Actions