1. Set the command input prompt line in the format of "User name: Current directory $"
2. Set the format of the command input prompt line to "Current System Time-user #" (Note: Shell will interpret the cited string as a command through the
1. List all processes in your current system. Which of the following processes did you start in the system?
Highlighted. The init process was first started.
2. List the processes that occupy the highest memory in the current system.
Highlights the
Cron Introduction
cronIt is a very useful tool in UNIX, SOLARIS, and LINUX. PasscronThe script enables scheduled tasks to run automatically on the system background on a regular basis.Cron command
crontab -e-Edit the crontab of the user. A new
Method 1 (for virtual machines): Adjust the linux resolution under VMWARE
After linux is installed in VMWARE, the default resolution is 800x600, and the resolution is adjusted to 1024x768. The process of pixels being millions of pixels is as
Course connection: Vi Text Editor
Vi and vim
Vi is a text editing tool on the command line interface. It provides text editing, text processing, code development, and other functions.
Vim is the strong version of vi (Code highlighting)
Run vim to
When CentOS 6.2 is installed today, when the hard Disk is detected, the following error is reported: Disk sda contains bios raid metadata, but is not part of any recognized bios raid sets. ignoring disk sda
This situation is similar in Ubuntu and
1. grep command: Find the matching strings in the fileA powerful text search tool that uses regular expressions to search for text and print matching rows.Syntax format: grep [options]-I: ignore-case ignores case differences-C: count: only prints
1. Role
In Linux, The grep command is a powerful text search tool that uses regular expressions to search for text and print Matching lines. Grep stands for Global Regular Expression Print, which indicates the Global Regular Expression version. Its
In the past two days, the lab asked me to install a CodeLite on the server. So I started with the server. After reading the tragedy on the internet, I found that CodeLite does not support direct installation on CentOS 6.2 and can only be compiled
By default, the ntfs file system is not supported in Linux. View the file systems supported by linux. The Installation tool is required to support NTFS partitioning.[Root @ localhostaudisp] # cat/etc/filesystemsExt3Ext2Nodev procNodev
1. Download vSphere SDK for PerlHttp://www.vmware.com/support/developer/viperltoolkit/index.htmlDecompress and runExport http_proxy =Export ftp_proxy =./Vmware-install.pl press Enter.When installing the sdk, the installation script uses cpan to
1 udev Introduction
--------------------------------------------------------------------------------Udev is a function in Linux kernel. It replaces the original devfs and becomes the default device management tool in Linux. Udev runs as a daemon and
The standard format when fork is used in this book isPid_t pid;If (pid = fork () {}Else if (pid = 0) // sub-process{}Else // parent process{}When the code is written in the same format as above, the sub-process is always executed, and the
What is partition? Partitioning refers to telling the operating system that the disk is divided into several partitions by the cylindrical range. For example, 1-50 cylinders are used as sda1, and 51-cylinder are used as sda2 partitions. In this way,
Linux memory management-differences between virtual addresses, logical addresses, linear addresses, and physical addresses (1)
Linux memory management-physical address, linear address, and virtual address. Conversion between logical addresses (2)
Clock/hwclock:
Display and set the hardware clock(Query and set the hardware clock (RTC). the two commands are the same. RTC = Real Time Clock, that is, the hardware Clock.
Command parameters:
-S, -- hctosys synchronize the hardware clock to the
I don't want to talk nonsense about ssh and port forwarding. The main reason is that the command format of ssh is not very understandable. Related Articles have also been searched on the Internet, which is uneven. In fact, I also understand how to
I. Check the number of CPUs, cores, and threads in Linux.
(1) Check the number of physical CPUs
Grep 'physical id'/proc/cpuinfo | sort-u | wc-l
(2) Check the number of cores
Grep 'core id'/proc/cpuinfo | sort-u | wc-l
(3) view the number of threads (
Install flash plug-in for Firefox in Ubuntu 12.04
After Ubuntu12.04 is installed, I use the Firefox browser to watch videos. Result The browser prompts that a suitable plug-in is missing and the player cannot be played. In the Installation Wizard, I
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