home.social

#terminaltips — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #terminaltips, aggregated by home.social.

  1. Mastering the command line is all about those little productivity hacks! 🚀

    Today's tip: Ever need to run multiple commands *only if* the previous one succeeded? Use `&&`.

    Example: `sudo apt update && sudo apt upgrade -y`

    This ensures your system only tries to upgrade after a successful update. Super handy for scripting or just chaining quick tasks.

    What's your favorite productivity trick in the terminal? Share below! 👇

    #Linux #CommandLine #TerminalTips #OpenSource #Productivity

  2. Quick Linux trick! 🐧 Display the current date, user, and hostname in one command: ```bash echo "Date: $(date) – User: $USER – Hostname: $HOSTNAME" ``` Simple, clean, and informative for your terminal sessions! 🖥️ #Linux #TerminalTips #DevLife

  3. TIL: `sed -n ‘14p’ filename` to print only line 14 of filename. #TerminalTips #unix

  4. Linux tip:

    Pressing Ctrl+Shift+K is a surefire way to clear terminal logs, while Ctrl+L and 'reset' commands might not always do the trick. 🧹