专题索引
文章索引
Configuring SSH from Scratch
This document provides a detailed guide on how to configure SSH from scratch, including installing SSH, generating key pairs, configuring the SSH service, allowing root login, and setting up key-based authentication.
Connect to a Remote Server Using an SSH Private Key
1. Prepare the SSH Private Key File
Introduction to tmux Terminal Multiplexer
Tmux (terminal multiplexer) is a powerful terminal multiplexer that allows users to access multiple independent sessions within a single terminal window, as well as detach from and reattach to sessions. With tmux, you can disconnect from a session without interrupting running processes and reconnect later. Here is a basic guide on using tmux on Unix-like systems:
VS Code Port Forwarding
Set Up Port Forwarding
Jupyter Remote Server Connection Guide
Jupyter Notebook can be used not only locally but also for conveniently connecting to remote servers. This way, if you have a server with large memory but prefer not to work directly on Linux, you can connect to the server remotely from a local Windows machine through Notebook and use the server's resources to write code.
Output Absolute Path
In Linux, if you want to output the absolute path of a file, you can use the readlink command or the realpath command. Here is how to use both:
Linux find Command Explained
Introduction
Check Disk Usage of Files and Directories
Basic Methods
Redirecting Error Output
To ensure all output data is redirected to a file, you can try the following methods:
Looping a Command in Linux
You can use a while loop to repeatedly execute a command in the Linux terminal. Here is a simple example that will loop the make test command indefinitely:
Zip Command
On Linux, the zip command is used to package and compress (archive) files. Here are some basic usages of the zip command:
Linux Compression Formats Explained: zip, tar, tar.gz
On Linux systems, compressing and archiving files is a common daily task. Common compression formats include zip, tar, and tar.gz. Each format has its own characteristics and use cases. This article provides a detailed comparison of these formats, including their differences, pros and cons, and usage recommendations.
pigz: Parallel Compression Tool Guide
1. Introduction
Changing Passwords with the passwd Command
In most Unix and Linux systems, users can change their passwords using the passwd command. This document provides a detailed introduction to the usage of the passwd command and related considerations.
Configure a Proxy on Linux
Host Machine Proxy via Clash Port
Bash Script Non-Interactive Installation
When running the Miniconda installation script, the -b option enables "non-interactive mode" installation. This means the installation process runs automatically without requiring any input or confirmation from the user. Specifically, the -b option will:
nvidia-smi Command Reference
nvidia-smi is the NVIDIA System Management Interface, a command-line utility for monitoring and managing NVIDIA GPU devices. Below is an overview and explanation of the command-line options.
Install and Configure Git
打开「Install and Configure Git」查看完整内容与上下文。
Configure Git on a Linux Server
To set up a Git environment on a CentOS Linux server, follow these steps:
Cloning Large Files with Git LFS
Git LFS (Large File Storage) is an extension for Git designed to manage large files. It stores large files in a separate location and keeps references to these files in the Git repository, preventing the repository from becoming too large. Below are the detailed steps for using Git LFS to manage and clone large files.