Linux Handy (file operation)

New Foldermkdir folder nameNew fileTouch file nameRenamingMV filename new file nameMove the/a directory to/b and rename to Cmv/a/b/cDelete a folderRM-RF folder nameDeleting FilesRm-f file nameQuerying files (folders)Find/-name ' filename

How to use a Linux server as a file server

In the development process you want to use a Linux server as a file server, you can obtain file information by ip+ filename, such as http://localhost/banner/a.jpg. The setup process is as follows1. Installing Apache2sudo Install apache22. Modify the

Linux directory Structure

/bin:bin is the abbreviation for binary, which is the most commonly used command in this directory./boot: This directory contains some of the core files used when starting Linux, including some connection files and image files./dev:dev is the

Linux System parameter Statistics script

#!/bin/shClearif[[ $#-eq 0]] Then#Define Variable reset_terminalreset_terminal=$(tput sgr0)#Check OS Typeos=$ (Uname-o) echo-E ' \e[36m '"Operating System Type:" $Reset _terminal $OS#Check OS realease Version and Nameos_name=$ (cat/etc/issue |

Linux Common commands

Since the project project is using a Linux server, more Linux commands are used to record the commands commonly used in CentOS.1. Three modes of VIM2, decompression related3. User-related4. File related5. Various view commands1. Three modes of VIMVI

A pit with the date command and the sudo command under Linux crontab

Want to add some task plan in root crontab, want to run command with WWW user, and redirect output to a log file named at that time, roughly as follows/usr/bin/sudo-u www/usr/local/php/bin/php/www/open/www.php &>/var/log/xxx_cron_log/www_$ (date + "%

linux-Command-cut

Command: Cut [options] File--Sort by file size shows the first 100 rows showing the last five columnsLl-sh|head-n 100|cut-d '-F 5-First, the basic grammarCut is a selection command that, in the unit of behavior, divides the rows into fields with the

Linux Cut command

1 basic data unit for Cut command processingAs with most text processing tools, cut is also based on the behavior of the basic data unit.2 use of the Cut commandGu Mings, cut is to cut out the rows to meet the conditions of the data, the return is

Linux boot, shutdown, and shutdown of the failed kill process

1. The tomcat server starts and views the command to start the log for the first timeIn.. /bin folder, enter the ./startup.sh;tail-f. /logs/catalina. out2, need to restart the server whenIn.. /bin directory ./shutdown.sh When the Tomcat service

LINUX view current system memory usage Vmstat

Linux vmstat CommandsThe Vmstat command is the most common Linux/unix monitoring tool that can represent the state values of a server at a given time interval , including the server's CPU usage, memory usage, virtual memory exchange situation , IO

[Linux]/sbin/nologin user Run Program

Create a/sbin/nologin user[[email protected] ~]# useradd-s/sbin/nologin redis[[email protected] ~]# grep redis/etc/passwdredis:x:501:501::/home/ Redis:/sbin/nologin[[email protected] ~]# su redis-c "echo SS" This account was currently not available.1

The simplification of Linux regular expressions in sed awk filtering

As a beginner, just contact the regular expression, it must be confused, but it doesn't matter, use examples to illustrate.==*==*==*==*==*==*==*==*==*==*==*==*==*==*==*==*==*==*==*==*==*==* ==*==*First, take a look at what the regular expression

Linux primary shipping Koriyuki files and File system Specifications (FHS)

File:drwxr-xr-x. 2 root root 60 August 5 21:12 VfioThe first character represents the type of file.File types are:-: Normal file (f)D: Catalog fileB: Block device files (blocks)C: Character device file (character)L: Symbolic Link files (sysbolic

Linux Multi-process multithreading related concepts

process : An executable is a static entity that is stored on a disk device by code and data that is organized in a format, while a process is dynamically run by the code that can be dispatched. In a Linux system, each process has its own life cycle.

A large collection of linux compression and decompression tools, linux compression and decompression

A large collection of linux compression and decompression tools, linux compression and decompression There are many compression, decompression and archiving tools. Today, we will sort out some of the most commonly used tools. Compress gzip bzip2

Common vim commands,

Common vim commands,   1. Multi-line comment:1. first Press esc to enter the command line mode, press Ctrl + v to enter the column (also called block) mode; 2. use the up/down key at the beginning of the row to select multiple lines to be

Centos6.9 (Linux) Installation of VMware tools tutorial, centos6.9vmware

Centos6.9 (Linux) Installation of VMware tools tutorial, centos6.9vmware VMware tools is a virtual hardware driver for virtual machines. It allows you to seamlessly move the mouse out, share the clipboard, and share folders. Many Linux beginners do

Build an embedded development environment-install the cross-compilation tool chain and embedded compilation tools

Build an embedded development environment-install the cross-compilation tool chain and embedded compilation tools If the development environment is Linux, the cross-compilation tool chain is required. The installation process is as follows: cd

You do not need to enter a password for Rsync transmission.

You do not need to enter a password for Rsync transmission. 1. Background 1) one server: VM3 (IP: 3.9.8.151) 2) A client: VM2 (IP: 3.9.8.157) 3) The server and client can ping each other. 4) rsync has been installed on both the server and

Centos7 users, group and file permission management, and centos7 permission management

Centos7 users, group and file permission management, and centos7 permission management If no user is created during centos7 installation, only the ROOT user is used by default. This user is an account with the highest permissions and can do anything,

Total Pages: 5467 1 .... 2939 2940 2941 2942 2943 .... 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.