Samba shared printer in Centos

First, the company has a printer with the HP LaserJet m1120 mfp model, which is inconvenient to use because it is not a network printer, the boss of the company asked to connect the printer to the company's intranet linux Server (CentOS) and then

Build an Apk decompilation environment in CentOS

In windows, The Decompilation will not be mentioned. Baidu is a bit more versatile. Next we will talk about the decompilation of Apk in Linux.Decompilation can be divided into two types: obtaining the application resource file and obtaining the

Centos command -- cut

1. Describe the cut command in one or two sentences!As its name suggests, cut is used to cut data. Specifically, cut data is used in files.Cut is a processing object for each row. This mechanism is the same as sed. (The Introduction to sed will be

Introduction to Centos loop Devices

1. Introduction to loop DevicesIn UNIX-like systems, a loop device is a pseudo-device, or a simulation device. It allows us to access a file like a block device.Before use, a loop device must be connected to a file. This combination provides you

Centos CPU Optimization

1. Check L1, L2...Dmesg x86info-c (yum install x86info-y) 2 hit rate, Loss Rate view: valgrind -- tool = caohegrind command 3 view process priority (usually 0 by default) top three priorities of chrt-p 29022 (process number): SCHED_RR 1 ~ 99

Modify the MAC address of CentOS

Many software applications need to bind MAC addresses (for example, OpenCountry). Sometimes we need to modify the MAC address of the NIC for special purposes.1. Method 1:Use the command to temporarily modify:Ifconfig eth0 down Ifconfig eth0 hw

CentOS installation and compilation environment

Use the yum program to install the required development kit (The following is the standard rpm package name) # Yum install gcc-c ++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel

CentOS host name Modification

Quickly modify the host name in SSH1. view the current host name Hostname # directly execute this command to view the current host name 2. Change the host name to www.centoscn.com. Hostname www.centoscn.com You can modify the yellow part

CentOS calculates the number of files and folders in a folder.

Count the number of files in a folderLs-l | grep "^-" | wc-lCount the number of directories in a folderLs-l | grep "^ d" | wc-lCount the number of files in the folder, includingLs-lR | grep "^-" | wc-LFor example, to count all js files under

Usage of nohup in Centos commands

Anyone who has played Linux should know that if you want to run a program in the background, you only need to add an & symbol at the end of the command. However, this method is not very safe. Some programs will stop when you log out of the terminal.

Nginx configuration file nginx. conf

PS: I have been using Nginx for two or three years. Now I often encounter some basic questions from new users. I have no time to answer them one by one. It took me some time this afternoon, based on your experience, I will share the main

Automatic Installation of PXE in Linux

Anyone who has installed linux knows that it is easy to install linux on only one machine. We only need to put the optical drive in, and install it step by step! But when we install multiple machines in one data center at the same time, it is

Detailed explanation of cat commands in CentOS

Usage: cat [Option] [file]...Output A [file] or a combination of standard input to standard output.-A, -- show-all is equivalent to-vET.-B, -- number-nonblank: number of non-empty output rows-E is equivalent to-vE.-E, -- show-ends is displayed at

In CentOS, lastb lists USER commands that fail to log on to the system.

Function Description: lists information about users who failed to log on to the system. Syntax: lastb [-adRx] [-f ] [-n ] [account name...] [terminal number...] Note: Execute the lastb command separately. It will read the file named btmp in

Clean swap and buffer/cache in CentOS

Swap cleanup: swapoff -a && swapon -a Note: This cleanup requires that the idle memory must be larger than the used swap space. Cache cleanup: sync; sync; sync;&& echo3 >/proc/sys/vm/drop_caches sleep 2 echo

Ip address, gateway-settings, modification, and Common commands in CentOS

Settings: You can manually modify the network address or add a new network interface to the new interface by modifying the corresponding file (ifcfg-ethN) or creating a new file. DEVICE = name indicates the name of the physical DEVICE. IPADDR = addr

The rm command in CentOS is transformed into moving files to the recycle bin.

Convert the rm command in linux to move the file to the recycle bin. Rm is the command to delete files in Linux. It is a very powerful but dangerous command in Linux. In particular, rm-rf is sometimes so powerful that you can cry, when you want to

How to configure multiple IP addresses for Nic placement in CentOS

Today, let's review how to configure multiple IP addresses for a single Nic in linux. One is to use commands for direct configuration, and the other is to write the configuration file by yourself, now let's talk about it one by one.1. Use commands

How to encrypt Shell. sh scripts in centos

Shc is a tool for encrypting shell scripts. it converts shell scripts into executable binary files and performs automatic maintenance on the system using shell scripts, which is simple, convenient, and portable.However, shell scripts can be read and

How to install and uninstall software in Centos

Chapter 1 How to know where to install software in linux Note: The default installation directory of general software is in/usr/local or/opt. You can find it there. Command name: whereis Function Description: search for qualified files in a specific

Total Pages: 5467 1 .... 4440 4441 4442 4443 4444 .... 5467 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.