If you have bought a server from an external provider, usually it's not following the Linux authentication best practices. You need to set it up properly before hosting services on it. Preparation Check the server layout After buying a new server, at least you need to understand ...
This blog shows a tutorial about how to download any Azure media service video or live stream. Before starting, you need to have FFmpeg installed. No matter you are using Windows, Linux, or Mac OS. Download latest FFmpeg here: https://ffmpeg.org/download.html After installing it,...
Ask the user to select the Azure cloud under which he runs the Azure CLI: login azure() { no cloud=true while $no cloud; do echo 'Select your cloud:' az cloud list output table read p 'Enter the name:' cloudName az cloud set name $cloudName && no cloud=false done az account show ...
The Azure command line interface (CLI) is Microsoft's cross platform command line experience for managing Azure resources. The Azure CLI is designed to be easy to learn and get started with, but powerful enough to be a great tool for building custom automation to use Azure resour...
Bash is the major shell client I use. On Windows 10 I really enjoy git bash. But how to set bash to the default terminal in the new Windows terminal? Brief steps: Install a Linux style shell like git bash. Install the Windows Terminal Make git bash the default terminal in Windows...
This document provides a guide to efficient practices for Linux system administration. First, it details the use of terminal multiplexers such as tmux and screen, including creating, detaching from, and reattaching to sessions, as well as sending commands to the background, with special emphasis on the convenience of executing scripts within screen. Next, it introduces the installation and configuration of SteamCMD, explicitly stating that there is no need to create a dedicated user; it can be run directly with the current account. It also demonstrates how to update game servers, such as Project Zomboid, using scripts. In terms of system monitoring, the article provides a comprehensive comparison of tools including top, htop, free, netstat, iotop, iostat, ifstat, iftop, dstat, sar, vmstat, nmon, atop, and glances, covering real-time monitoring and historical data analysis for CPU, memory, disk I/O, and network traffic. Finally, it summarizes a series of practical command-line tips, including counting lines of code, batch Git operations, testing disk write and SSH transfer speeds, generating UUIDs, generating random numbers, and using dd to create bootable drives, all aimed at improving operational efficiency and system troubleshooting capabilities.
Every time I start my computer, I gonna open bash and pull all my repositories. My folder structure looks like this: So how can I pull all my repos with only one command? First, create a new file: pull.sh under the folder WorkSpace Change the content to: find . maxdepth 2 mindept...