Article Tags
Article Tags
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
How to list all running processes in Linux
Usepsauxforasnapshotofallprocesses;2.Usetopforreal-timeCPU-sortedmonitoring;3.Usehtopforenhanced,interactiveviewing;4.Usepgreptofindspecificprocessesbyname.
Nov 27, 2025 am 12:03 AM
How to enable and disable services on boot in Linux
MostLinuxsystemsusesystemdtomanagestartupservices;checkwithps-p1.Usesystemctlenable/disabletocontrolbootstartup,andsystemctlstart/stopforimmediateaction.OldersystemsuseSysVinittoolslikeupdate-rc.dorchkconfig.Enableaserviceatbootwithsudosystemctlenabl
Nov 26, 2025 am 03:03 AM
How to set up a basic firewall with iptables in Linux
To configure the iptables firewall, first set the default policy to deny all inbound and forwarded traffic and allow outbound traffic; 2. Then allow local loopback and established connection traffic; 3. Then open necessary service ports such as SSH, HTTP, HTTPS, etc.; 4. Optional configuration logs to record discarded packets; 5. Finally, save the rules to prevent restart loss, ensuring system security and not interrupting normal access.
Nov 26, 2025 am 01:24 AM
How to check which version of Linux I am running
Startwithcat/etc/os-releaseorlsb_release-dtofindtheOSversion,astheseprovidecleardistributiondetailsacrossmostsystems;useuname-rforkernelversion,whichdiffersfromtheOSreleasebutisoftenhelpful.
Nov 25, 2025 am 12:51 AM
How to set the system time and date in Linux
UsetimedatectltomanagetimeanddateinLinux.1.Checkcurrentsettingswithtimedatectl.2.Settimemanuallyviasudotimedatectlset-time"YYYY-MM-DDHH:MM:SS".3.Listtimezonesusingtimedatectllist-timezones.4.Changetimezonewithsudotimedatectlset-timezoneZone
Nov 25, 2025 am 12:13 AM
How to manage services with systemctl in Linux
systemctlisessentialformanagingLinuxserviceswithsystemd.2.Usestart,stop,restartforimmediatecontrolandenable,disableforbootpersistence.3.Checkstatuswithstatus,is-active,is-enabledandviewlogsviajournalctl.4.Reloadconfigurationsusingreloadorreload-or-re
Nov 24, 2025 am 12:55 AM
How to delete a directory in Linux that is not empty
Todeleteanon-emptydirectoryinLinux,usetherm-rcommandfollowedbythedirectoryname,suchasrm-rmy_folder,whichrecursivelyremovesallcontentsandthedirectoryitself.Forforcefuldeletionwithoutprompts,userm-rf,butexercisecautionasthisactionisirreversible.Alterna
Nov 24, 2025 am 12:30 AM
How to find a file in Linux using the command line
Use the find command to find files in Linux by name, type, size and modification time, such as find/home-name "document.txt"; 2. Limit the search type through the -type option, such as f for files and d for directories; 3. Search by size with -size, such as 100M means greater than 100MB, use -mtime according to time, such as -7 means modification within 7 days; 4. The locate command is faster to search based on the database, but you need to run sudoupdatedb to update the database first; 5. Find is suitable for accurate real-time search, and locate is suitable for quickly finding older data.
Nov 23, 2025 am 02:00 AM
How to find a process ID (PID) by name in Linux
TofindaPIDbynameinLinux,usepgrep,pidof,orpswithgrep.1.pgrepprocess_namereturnsthePIDdirectlyandisrecommended;add-iforcase-insensitivesearch.2.pidofprocess_nameretrievesPIDsbyexecutablename,usefulwhenmultipleinstancesrun.3.psaux|grepprocess_namelistsp
Nov 23, 2025 am 12:10 AM
How to restart the networking service in Linux
Usesystemctlonmodernsystems:sudosystemctlrestartnetworking(Debian/Ubuntu)orsudosystemctlrestartnetwork(RHEL/CentOS);usesudoservicenetworkingrestartonoldersystems;verifywithsystemctlstatusandipa.
Nov 22, 2025 am 04:31 AM
How to zip and unzip files in a Linux terminal
TocompressandextractfilesinLinux,usethezipandunzipcommands.First,installthemviayourpackagemanagerifneeded:onDebian/Ubuntu,runsudoaptinstallzipunzip;onRedHat/CentOS/Fedora,usesudodnfinstallzipunzip.Tozipasinglefile,useziparchive.zipfile.txt;formultipl
Nov 22, 2025 am 04:13 AM
How to set up Fail2Ban to protect SSH on Linux
InstallFail2Banusingaptordnf,startandenabletheservice.2.Createjail.localfromjail.confandconfigure[sshd]withenabled=true,correctlogpath,maxretry=3,bantime=3600,findtime=600.3.Verifywithfail2ban-clientstatussshdandmonitorlogstoconfirmprotectionagainstS
Nov 21, 2025 am 01:16 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



