• renzev@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    2 hours ago

    tldr is great. Basically a crowd-sourced alternative to man with much more concise entries. Example:

    $ tldr dhcpcd
    
      DHCP client.
      More information: <https://roy.marples.name/projects/dhcpcd>.
    
      Release all address leases:
    
          sudo dhcpcd --release
    
      Request the DHCP server for new leases:
    
          sudo dhcpcd --rebind
    
  • lud@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 hour ago

    As primarily a Windows admin (Yes, we exist on Lemmy ;) ) here are few I use often.

    • Enter-PSSesion
    • Get-ADUser (also group and computer)
    • CLS (aka the superior clear)
    • ii . (short for Invoke-Item . which runs the selected object using the default method. For paths (like .) the default is explorer, so ii . opens the current directory using explorer.)
    • ft (short for Format-Table formats piped input as a table.)
    • fl (short for format-like. Used like ft but for lists.)
    • Where-Object
    • Select-Object
  • spittingimage@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 hour ago

    I often play an old DOS game in DOSBox, and when I exit it doesn’t reset the screen resolution. So I reset it manually by typing

    xrandr -output e-DP1 -auto

  • NauticalNoodle@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    5 hours ago

    For Debian based/descended distros:

    sudo apt-get update && sudo apt-get upgrade
    

    And technically I also regularly use

    redshift -O 3000
    

    all of the blue light filter programs try to align themselves with a user’s geographic location and time, but I don’t keep normal hours

      • NauticalNoodle@lemmy.ml
        link
        fedilink
        arrow-up
        5
        ·
        5 hours ago

        I would but much like somebody else’s recent post I have in the past nuked my install by blindly agreeing to some recommended software removals before. These days I like to double check what packages are being updated and replaced.

  • Caveman@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    5 hours ago

    g-push which is alias for

    git push origin `git branch --show`
    

    Which I’m writing on my phone without testing or looking

  • seth@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    6 hours ago

    In my ~/.bashprofile: alias resource="source ~/.bashprofile"

    In my terminal: resource

    Anything to save a few characters

  • beirdobaggins@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    11 hours ago

    diff -y -W 200 file1 file2

    Shows a side by side diff of 2 files with enough column width to see most of what I need usually.

    I have actually aliased this command as diffy

    ctrl-r

    searching bash history

    du -sh * | sort -h

    shows size of all files and dirs in the current dir and sorts them in ascending order so you can easily see the largest files or dirt ant the end of the list

    ls -ltr

    Shows the most recently modified files at the end of the listing.

  • lluki@feddit.org
    link
    fedilink
    arrow-up
    12
    ·
    15 hours ago

    xdg-open FILE - opens a file with the default GUI app. I use it for example to open PDFs and PNG. I have a one letter alias for that. It can also open a file explorer in the current directory xdg-open . . Should work on any compliant desktop environment (gnome/kde).

  • Bob@feddit.nl
    link
    fedilink
    arrow-up
    3
    ·
    12 hours ago

    I use “ping” every time I suspect my internet might be going a bit slow.

  • I Cast Fist@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    12 hours ago

    More of a shortcut, CTRL + A + D to exit the current session (exits a sudo su first, then a ssh, then the actual terminal)