Replace the RM command under Linux and judge the-RF

1. Use the root user to create the/usr/local directory. rmov.sh#!/bin/shpara_cnt=$#Trash_dir= "/data01/.trash"For i in $*; Doif [$i = = "-rf"-o $i = = "-r"-O $i = = "F"]Then:Elsestamp= ' Date +%s 'Filename= ' basename $i 'MV $i $TRASH _dir/$fileName.

Linux Programming Reading pen 1

Introduction to Chapter I.Linux applications behave as two special types of files: Executable + script files/bin binary Files directory, the standard program used to store the boot system/usr/bin user binaries directory, storing standard programs

Linux Learning-Learning route (excerpt)

A road map that extracts some of the author's Linux Exercises (ROLISTINGMAP): Compare why you learn Linux Learn the basics of Linux, including user management, group concepts, and concepts of permissions Master up to 50 more common commands

The difference between profile and BASHRC four in Linux

/etc/profile,/ETC/BASHRC, ~/.bash_profile, ~/.BASHRC are easily confused, what is the difference between them? What is their role in the end?/etc/profile: Used to set the system environment parameters, such as $path. This environment variable is in

Linux hard links and symbolic connections

Linux hard links and soft links1.Linux Link ConceptThere are two types of Linux links, one called hard links, and the other called Symbolic links (symbolic link). By default, the LN command produces a hard link."Hard Connect"A hard connection is a

Linux Memcache Build

This approach is recommended when you deploy a production environmentMemcached relies on libevent, so the installation libevent must be compiled first. Both need to be installed in the Gnu/linux system with more than 2.6 kernel versions. Before

Kali Linux 2.0 USB Drive installation Error Unable to load optical drive

2. The CD-ROM cannot be mounted while the USB drive is installed. Tip Error your installation CD-ROM couldn ' t be mounted.3. After Google search, refer to foreign methods.4. After some groping. Get the solution, the native test succeeds. As follows:

Linux Remote Connection Client summary

Order: just from Ali ECS bought a ubuntu14.04_64_20g, but did not provide page landing tools, so from the Internet to find a few remote connection tools, close-up here is a summary.1 SECURECRTSECURECRT is an SSH-enabled terminal emulator, which is

One Linux command per day (6): rmdir command

Http://www.cnblogs.com/peida/archive/2012/10/27/2742076.htmlLearn about Linux commands today: the RmDir command. RmDir is a commonly used command, the function of which is to delete an empty directory before a directory is deleted must be empty.

One Linux command per day (5): RM command

Yesterday I learned the command to create files and directories mkdir, today learn about the commands for deleting files and directories in Linux: RM command. RM is a commonly used command that removes one or more files or directories from a

Some summary of adding password to embedded Linux serial port

To add a serial login password you need to modify the configuration of the/etc/inittab file, but different development board situation is not the same, some do not have this file, BusyBox will check whether the/etc/inittab file exists, if this file

[state-Embedded notes] [006] [Linux text Editor]

Common text editors in Linux are VI and EmacsVIM has 3 working modes: command line mode, insert mode, bottom row mode1. Type I into insert mode2. Type [ESC] to return to the command line mode3. Type: Enter the bottom row mode, then type Wq save to

"Linux Learning note" Samba is configured on RHEL7

Samba is all called the server Message block, the information service blocks, mainly used to implement Linux and Windows file sharing.First, basic configuration optionsThe main configuration files are/etc/samba/smb.conf, configuration files are

Installation notes for tecplot in Linux

Installation notes for tecplot in Linux 1. Obtain the. iso file of tecplot and mount it in the root directory. 2. I plan to install it in/home/wy/tecplot. Of course, after mounting, I first cp to/home/wy/opt. 3. Execute./setup in/linux under/opt.

Linux shell Command cat, linuxshellcat

Linux shell Command cat, linuxshellcat Cat: view the file content, connect to the file, create one or more files, and redirect the output to the terminal or file. Usage: cat [Option] [file] 1. $ cat hello.txt Displays the content in the hello.txt

Build a DNS server in Centos6 Environment

Build a DNS server in Centos6 Environment Configure the domain master server Phase: 1. Add the domain to the bind main configuration file 2. Create the zone file for this domain in/var/named. 3. Edit the zone file and add the required information. 4.

Configure the dual-nic bond IN Centos6.4

Configure the dual-nic bond IN Centos6.41. Environment Description The virtual machine created in esxi5.5, the system is Centos6.4, originally only one Nic, named ifcfg-eth0. To achieve network redundancy, login to VMware vSphere Client to the

Linux RPM package-related commands

Linux RPM package-related commands1. How to install the rpm package rmp package can be completed using the program rpm. Run the following command rpm-I your-package.rpm where the your-package.rpm is the file name of the rpm package you want to

Linux: deploy apache configurations for multiple projects on an apache server.

Linux: deploy apache configurations for multiple projects on an apache server. Step 1: Get the code to the/var/www/html directory (this is the default directory, depending on apache settings). Multiple projects can be stored in this directory, for

RedHat command line and graphical interface Switch

RedHat command line and graphical interface Switch 1. switch between the Linux GUI and command INTERFACE The RedHat Linux system is installed in the virtual machine. By default, the graphic interface is displayed. You can press Ctrl + Alt + Fn (n = 1

Total Pages: 5467 1 .... 1858 1859 1860 1861 1862 .... 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.