Article Tags
Article Tags
How to expand a logical volume (LVM) in Linux
First,checkvolumegroupfreespaceusingvgdisplay;ifsufficient,extendthelogicalvolumewithlvextend-L size/dev/vg_name/lv_nameoruse-l 100%FREEtoallocateallavailablespace;finally,resizethefilesystemviaresize2fsforext4orxfs_growfsforXFSonthemounteddirectoryt
Dec 04, 2025 am 03:27 AM
How to use the 'sed' command to find and replace text in Linux
ThesedcommandisaLinuxtoolforfindingandreplacingtextinfilesorstreams.2.Usesed's/old/new/g'filenametoreplacealloccurrences.3.Add-itoeditfilesinplace,-i.baktobackupbeforeediting.4.Usedelimiterslike|or#forpaths.5.sedisidealforautomationandbatchediting.
Dec 03, 2025 am 05:50 AM
What is the difference between apt and yum in Linux
apt and yum are package management tools for different Linux distributions. apt is used in Debian systems (such as Ubuntu) to process .deb packages; yum is used in older RedHat systems (such as CentOS, RHEL) to manage .rpm packages, and is now mostly replaced by dnf.
Dec 03, 2025 am 05:44 AM
How to read a text file line by line in a Linux bash script
Themostreliablewaytoreadafilelinebylineinbashisusingawhileloopwithread.UsewhileIFS=read-rline;doecho"$line";done
Dec 02, 2025 am 06:22 AM
How to properly shut down or reboot a Linux system
Shut down or restart using the correct commands to ensure data security. The shutdown command is preferred, such as sudoshutdown-hnow to shut down the system immediately, and sudoreboot to restart the system; systemctlpoweroff or systemctlreboot is recommended for modern systems to avoid direct power outage.
Dec 02, 2025 am 06:14 AM
How to install the Nginx web server on Linux
InstallNginxusingthesystem'spackagemanager:onUbuntu/Debian,usesudoaptinstallnginx;onCentOS/RHEL,usesudodnfinstallnginxorsudoyuminstallnginxwithEPELifneeded.2.Startandenabletheservicewithsudosystemctlstartnginxandsudosystemctlenablenginx,thencheckstat
Dec 01, 2025 am 05:59 AM
How to install Docker on a Linux system
Updatesystempackagesusingaptordnf.2.InstallrequireddependenciesforHTTPSrepositories.3.AddDocker’sGPGkeyforpackageverification.4.SetuptheofficialDockerrepositoryinsourceslist.5.InstallDockerEngine,CLI,andcontainerd.iopackages.6.StartandenableDockerser
Dec 01, 2025 am 05:51 AM
How to find and replace text in a file from the Linux terminal
ToreplacetextinafilefromtheLinuxterminal,usesedforsimplesubstitutionsandperlforadvancedregex;sed-i's/old/new/g'filenamereplacesalloccurrencesinplace,with-i.bakcreatingabackup,andalternativedelimiterslike|handleslashes;addiflagforcase-insensitivematch
Nov 30, 2025 am 04:45 AM
How to add a repository in Linux (Ubuntu/CentOS)
ToaddarepositoryinLinux,useadd-apt-repositoryonUbuntuand.repofilesoryum-config-manageronCentOS.First,installsoftware-properties-commononUbuntuoryum-utilsonCentOS.ThenaddtherepositoryURLviacommandlineorbycreatingarepofilein/etc/yum.repos.d/.Alwaysimpo
Nov 30, 2025 am 03:46 AM
How to start, stop, and enable services in Linux
UsesystemctltomanageLinuxservices:startandstopforimmediatecontrol,enableanddisableforbootsettings,andstatustocheckservicestate.
Nov 29, 2025 am 02:38 AM
How to update your Linux system with yum
RunyumupdatetoupgradeallpackagesonRedHat-basedsystems,ensuringsecurityandstability;useyumcheck-updatetopreviewupdates,updatespecificpackageswithyumupdatepackage-name,andcleancachewithyumcleanalltomaintainsystemperformance.
Nov 29, 2025 am 12:43 AM
How to analyze disk I/O performance in Linux
Useiostatandiotoptomonitorreal-timediskI/O,identifybottlenecksvia%utilandawait,analyzeprocess-levelactivity,inspect/proc/diskstatsand/sys/blockforsystem-widestats,andbenchmarkwithfiotomeasureperformanceundercontrolledworkloads.
Nov 28, 2025 am 05:37 AM
How to pipe commands together in Linux
PipesinLinux,representedby|,passoutputfromonecommandasinputtoanother.Forexample,ls-l|grep".txt"listsfilesandfiltersfor.txtentries.Commonusesincludecatfile.txt|sortforsortingtext,psaux|grepnginxtofindnginxprocesses,df-h|awk'{print$5}'toextra
Nov 28, 2025 am 05:35 AM
How to clear the command line history in Linux
Usehistory-ctoclearcurrentsessionhistoryand>~/.bash_historytoerasesavedhistory,ensuringcompleteremovalofpastcommands.
Nov 27, 2025 am 02:23 AM
Hot tools Tags
Undress AI Tool
Undress images for free
AI Clothes Remover
Online AI tool for removing clothes from photos.
Undresser.AI Undress
AI-powered app for creating realistic nude photos
ArtGPT
AI image generator for creative art from text prompts.
Stock Market GPT
AI powered investment research for smarter decisions
Hot Article
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
20416
7
13574
4



