Category: Linux

How to List Processes in Linux

ps -aux toppstree…1. Top First Five Lines of System Summary Statistics The first five lines in the statistics area display overall system statistics. 1. The first line shows task queue information, identical to the output of the `uptime` command: [root@localhost ~]# uptime 13:22:30 up 8 min, 4 users, load av …

20 Commands That Are Very Useful for Linux Newbies

Are you planning to switch from Windows to Linux, or have you just made the switch? Oops!!! What am I saying — whatever reason brought you into my world. From my past experience, when I first started using Linux, commands, terminals and all that really scared me. I worried about how many commands I needed to remember to help me…

How to Keep Files Synchronized Across Linux Servers

Servers often need to keep certain files or directories in sync, such as large software download websites that typically use multiple servers to provide download services. When a file is updated on one server, the other servers also need to be updated, and the update should only apply to newly added or modif …

10 Essential Linux Commands for Beginners

Are you planning to switch from Windows to Linux, or have you just made the switch? Oops!!! What am I saying — whatever the reason, here you are in my world. From my past experience, when I first started using Linux, the commands, the terminal, and all that really freaked me out. I worried about how many commands I’d need to memorize just to get things done…

Inside Facebook’s Backend Technology

Facebook as one of the most visited websites in the world today, how does Facebook ensure its system runs stably and reliably for 500 million users. Facebook’s Scalability Challenges Before we discuss the details, here is some software scale Facebook has already achieved: Facebook serves 570,000,000,000 monthly page …

How to Perfectly Replace GD with ImageMagick for Image Processing in PHP

When developing in PHP, everyone is accustomed to using the GD library to handle image information, but the GD library’s numerous functions can be a headache—you often need to look up functions one by one and consult the official manual. Below, we’ll introduce a very powerful image processing tool—ImageMagick, which under Linux …

How to Install ImageMagick and PHP Imagick Extension on Linux

First, let’s look at the differences between the two:
(1) Imagick is a PHP extension that uses the API provided by ImageMagick to create and modify images. However, these operations have been wrapped into the imagick extension, and ultimately it calls the API provided by ImageMagick.

(2) ImageMagick is a software suite, primarily used for …

How to Enable and Disable Ports in Linux

Under Linux, there doesn鈥檛 seem to be a direct command to open or close a port, because simply opening a port without associating it with a process would be meaningless (the port is open, but no program handles the incoming data). In other words, port activity in Linux is …