Typical application examples of ECHO commands in Linux

Here's a tip for using the echo command, flip a string to flip a string over Example 1: [Root@localhost software]# echo "ABCDEFG" | Perl-lne ' {$a = reverse ($_); print $a;} ' results: GFEDCBA flip A string over Example 2: [Root@localhost software]# Echo ...

How do I install the kernel source pack in Linux?

How do I install the kernel source pack in Linux? Sometimes, we need to upgrade the kernel of the system, we can use the RPM command to complete. Download the new ISO CD image file and mount the ISO file to the disc. The kernel source on your CD can be packaged, we use the following command: Rpm-i *kernel*source*.rpm

How to install Chinese Input method in Linux?

How to install Chinese Input method in Linux? Take Redhat8 as an example, X and its terminal under needless to say, the default installed, with Ctrl exhaled. Now to discuss pure console, go to the http://sourceforge.net/projects/zhcon/download zhcon-0.2.5.tar.gz, put it in any directory, and run the following command: Tar XVFZ ZHCON-0.2.5.TAR.GZCD zhcon-0 ...

How to add and remove RPM packages after the hard drive ISO installation files

Sometimes because of network reasons, or other circumstances, we can not access the Internet to get and install the RMP package, only through the hard disk ISO installation files to add and delete rpm files, how to add and remove the RPM package from the hard disk ISO file? We can use the following command: Redhat-config-packages--isodir=<path> <PATH> the directory where ISO files are located

Do you set vim in Linux to display or not display font colors?

Do you set vim in Linux to display or not display font colors? First we want to make sure that the vim-enhanced package is installed, and if not, follow these steps: [Root@localhost software]# wget ftp://ftp.pbone.net/mirror/ archive.download.redhat.com/pub/redhat/linux/5.2/en/os/i386/redhat/rpm ...

How do I find a file with a privilege bit s in Linux?

How do I find a file with a privilege bit s in Linux? We can use one of the following simple commands to achieve: find. -type f \ (-perm-04000-o-perm-02000 \)-exec ls-lg {} \;

How does a Linux system not allow ordinary users to modify their passwords?

How does a Linux system not allow ordinary users to modify their passwords? For Linux system security and http://www.aliyun.com/zixun/aggregation/13687.html "> User management requirements, there are some administrative environments we require ordinary users can not modify their user password, We can chmod the command: Do not let ordinary users change their passwords [Root@xin_fc etc]# chmod 511/usr/...

How do you view the installation location of files in RPM in Linux?

How do you view the installation location of files in RPM in Linux? We can use the following command: RPM-QPL aaa.rpm example: [Root@localhost software]# RPM-QPL Usr/bin/vim

How to use md5sum files in Linux

How do I use md5sum files in Linux? md5sum isofile > Hashfilemd5sum file and hashfile file content comparison, verify that the hash value is consistent md5sum–c Hashfile

How do I switch to the X desktop in Linux?

How do I switch to the X desktop in Linux? If you are logged in as a graphical login to Linux, then click on the login interface of the session (Task) that you can choose GNOME and KDE. If you are logged in as text, perform Switchdesk gnome or Switchdesk KDE and then startx into GNOME or KDE. (or vi ~/.xinitrc, add or modify to exec gnome-session or exec startk ...)

How to delete files and special files named-A and \a in Linux

How do I remove files and special files named-A and \a in Linux? A delete file named-a 1 rm./-a2 RM---a,--tells RM this is an option, see GETOPT3 ls-i list inum, and then use Find. -inum inum_of_thisfile-exec rm ' {} ' \; b Delete the file named \a rm \\a C Delete the name with the/and ' the ' and ' files these characters are ...

How do I get rid of excess carriage return symbols in Linux files?

How do I get rid of excess carriage return symbols in Linux files? Sometimes, when we are dealing with Linux files, we will find that there are extra carriage return symbols, how can we use effective methods to remove it? You can use the SED command: sed ' s/^m//' test.sh > back.sh notice ^m is knocking Ctrl_v Ctrl get or Dos2unix test.sh

How does Linux access a remote shared directory?

How does Linux access a remote shared directory? Place the following line in Fstab://ip/share1/mnt/d smbfs defaults,auto,userhttp://www.aliyun.com/zixun/aggregation/11696.html " >name=name,password= Pass 0 0 where IP is the IP address of the remote machine, is share1 the machine ...

How to view system Information using cat commands in Linux

Methods for viewing system information using cat commands in Linux cat/proc/cpuinfo-cpu (i.e. noun, Mhz, flags like MMX) cat/proc/interrupts-Interrupt Cat/proc/ioports- Device IO Port Cat/proc/meminfo-memory information (i.e. Mem used, free, swap size) CAT/...

Example usage of Mount Mount command in Linux

FAT32 partition MOUNT-O Codepage=936,iocharset=cp936/dev/hda7/mnt/cdrom NTFS partition mount-t ntfs-o codepage=936,iocharset=cp936/ Dev/hda7/mnt/cdrom ISO file Mount-o loop/abc.iso/mnt/cdrom floppy mount/dev/...

Set up COM1 port in Linux, let HyperTerminal login via COM1 Port

Linux to set the COM1 port, so that HyperTerminal through the COM1 port to log in the first step: Confirm that there are/sbin/agetty, edit/etc/inittab, add 7:http://www.aliyun.com/zixun/aggregation/ 19060.html ">2345:respawn:/sbin/agetty/dev/ttys0 9600 9600bps is because the default for routers is usually this speed ...

How do I view software for Linux partitions under Windows?

How do I view software for Linux partitions under Windows? Paragon.ext2fs.anywhere.2.5.rar and Explore2fs-1.00-pre4.zip now many Linux distributions are installed by default based on LVM, so EXPLORE2FS is also starting to support LVM2 with the Times: Http://www.chrysocome.net/downloads/explore2fs-1.08beta9.zip

Linux uses two existing files to generate a new file

The prerequisite for using two existing files in Linux to generate a new file: Each file must not have duplicate rows 1. Remove the set of two files (duplicate rows keep only one copy) Cat file1 file2 | Sort | Uniq 2. Remove the intersection of two files (leaving only files that exist at the same time in two files) Cat file1 file2 | Sort | Uniq-d 3. Delete intersection, leaving other rows cat file1 file2 | So ...

Linux Automatic upgrade update problem

For Redhat, a patch is found in www.redhat.com/corp/support/errata/, and a later version of 6.1 comes with a tool up2date that can determine which RPM packages need to be upgraded and then automatically download and complete the installation from the Redhat site. Upgrades for rpm:up2date–u upgrades except kernel include kernel rpm:up2date-u–f the latest redhat and fedora can use the yum command or ...

Tips for saving man's or info's information as a text file

Tips for saving man's or info's information as a text file example of RPM command: Man rpm | Col-b > Rpm.txtinfo rpm-o rpm.txt–s

Total Pages: 1205 1 .... 231 232 233 234 235 .... 1205 Go to: GO
Tags Index:

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.