We can easily download and install various software in Windows. We can also download and install it in Linux. We only need the wget command, but the initially installed virtual machine does not have this command. We need to install his package to use it.
#How to install the wget command?
Installing the WGET command under LINUX (SFTP implementation method)
Method 1: Through the yum
command behavior :
yum install wget
Complete. This operation is very simple, but the Linux I installed is the smallest version of centos. When running the above command, there will be a problem that I cannot connect to the source website (probably this means).
Recommended related articles:
1.5 wget examples for downloading files on the Linux command line
2.How to install pygame on Linux
Related video recommendations:
1.Brothers New Version Linux Video Tutorial
Method 2: Through rpm
It is said that rpm is the universal installation method of Linux. Newbies said they don’t understand it, but this does not affect my use. Follow the following steps:
Download the rpm package of wget:
http://mirrors.163.com/centos/7/os/x86_64/Packages/
(just search for wget-1.14-15.el7_4.1.x86_64.rpm on this website).
Run: rpm -ivh wget-1.14-15.el7_4.1.x86_64.rpm
BUT My Linux is installed in a virtual machine under the windows system, which requires the wget package Upload from windows system to linux server. It’s really a headache.
First of all, let me tell you that this process was not implemented when I used sftp. The local host directory of sftp seems to be only a Linux directory system, and an error will be reported when entering the windows directory. Google found a method as follows:
In the start menu, run cmd (you can also use the shortcut key win R) to enter dos mode, and enter at the command line:
pscp D:\wget-1.14 -15.el7_4.1.x86_64.rpm root@115.156.248.35 (internal IP, don’t know how to explain):/home
Then run the command in ssh:
rpm -ivh wget-1.14-15.el7_4.1.x86_64.rpm
OK, you’re done
The above is the detailed content of How to install wget on linux?. For more information, please follow other related articles on the PHP Chinese website!

The timing and reasons for using Linux maintenance mode: 1) When the system starts up, 2) When performing major system updates or upgrades, 3) When performing file system maintenance. Maintenance mode provides a safe and controlled environment, ensuring operational safety and efficiency, reducing impact on users, and enhancing system security.

Indispensable commands in Linux include: 1.ls: list directory contents; 2.cd: change working directory; 3.mkdir: create a new directory; 4.rm: delete file or directory; 5.cp: copy file or directory; 6.mv: move or rename file or directory. These commands help users manage files and systems efficiently by interacting with the kernel.

In Linux, file and directory management uses ls, cd, mkdir, rm, cp, mv commands, and permission management uses chmod, chown, and chgrp commands. 1. File and directory management commands such as ls-l list detailed information, mkdir-p recursively create directories. 2. Permission management commands such as chmod755file set file permissions, chownuserfile changes file owner, and chgrpgroupfile changes file group. These commands are based on file system structure and user and group systems, and operate and control through system calls and metadata.

MaintenanceModeinLinuxisaspecialbootenvironmentforcriticalsystemmaintenancetasks.Itallowsadministratorstoperformtaskslikeresettingpasswords,repairingfilesystems,andrecoveringfrombootfailuresinaminimalenvironment.ToenterMaintenanceMode,interrupttheboo

The core components of Linux include kernel, file system, shell, user and kernel space, device drivers, and performance optimization and best practices. 1) The kernel is the core of the system, managing hardware, memory and processes. 2) The file system organizes data and supports multiple types such as ext4, Btrfs and XFS. 3) Shell is the command center for users to interact with the system and supports scripting. 4) Separate user space from kernel space to ensure system stability. 5) The device driver connects the hardware to the operating system. 6) Performance optimization includes tuning system configuration and following best practices.

The five basic components of the Linux system are: 1. Kernel, 2. System library, 3. System utilities, 4. Graphical user interface, 5. Applications. The kernel manages hardware resources, the system library provides precompiled functions, system utilities are used for system management, the GUI provides visual interaction, and applications use these components to implement functions.

Linux maintenance mode can be entered through the GRUB menu. The specific steps are: 1) Select the kernel in the GRUB menu and press 'e' to edit, 2) Add 'single' or '1' at the end of the 'linux' line, 3) Press Ctrl X to start. Maintenance mode provides a secure environment for tasks such as system repair, password reset and system upgrade.

The steps to enter Linux recovery mode are: 1. Restart the system and press the specific key to enter the GRUB menu; 2. Select the option with (recoverymode); 3. Select the operation in the recovery mode menu, such as fsck or root. Recovery mode allows you to start the system in single-user mode, perform file system checks and repairs, edit configuration files, and other operations to help solve system problems.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
