Redirect Multiple Commands or an Entire Script to a File
Learn how to redirect the output of multiple commands or entire shell scripts to a file in Linux using command groups and exec.
Nick Janetakis is a self-taught full-stack developer with 20+ years of experience, focused on building efficient systems, teaching programming, and running a freelance business around modern development and DevOps tools.
34 articles from this blog
Learn how to redirect the output of multiple commands or entire shell scripts to a file in Linux using command groups and exec.
A tutorial on creating a Bash script using Awk and fzf to search, install, and remove Arch Linux and AUR packages from the command line.
Explains Docker Hub's new immutable tags feature, covering their benefits for reproducibility and how to configure them per repository.
A guide showing how to check the installed and download size of packages using the Pacman and Apt package managers on Linux.
A guide on using Git worktrees to build Docker images from only committed code, avoiding uncommitted or untracked files.
A guide to fixing the Neovim Markdown preview plugin when it fails to open in WSL 2, focusing on a WSL restart solution.
A quick tip for using 'git push origin HEAD' as a shortcut to push the currently checked-out Git branch, avoiding the need to type the branch name.
A guide to configuring custom file type syntax highlighting and language detection in Neovim using Lua patterns and Treesitter.
A developer shares their custom Neovim and LazyVim configuration, including a demo video and details on plugins, keymaps, and setup.
A developer explains their switch from Vim to Neovim and LazyVim, detailing the reasons and the migration process.
How to configure Tmux to prevent it from starting a login shell by default, avoiding repeated profile script execution.
A guide to CLI tools that offer preview, dry-run, or non-destructive modes to safely test commands before execution.
Explains how to use a dedicated .hadolint.yaml config file for portable and consistent Dockerfile linting across different environments.
A guide covering key considerations and best practices for containerizing a web application using Docker and Docker Compose.