linux practice exam

Want to know linux practice exam? we have a huge selection of linux practice exam information on alibabacloud.com

Linux-practice (23-24)

to create Useradd"[Email protected] ~]# VI 24p2.sh[Email protected] ~]#[Email protected] ~]# Ll/tmp/testdir1Total 0[Email protected] ~]# chmod +x 24p24p1.sh 24p2.sh[Email protected] ~]# chmod +x 24p2.sh[Email protected] ~]#[Email protected] ~]#./24p2.sh[Email protected] ~]#[Email protected] ~]# Ll/tmp/testdir1Total 0-rw-r--r--. 1 root root 0 Nov 11:29 newdir[Email protected] ~]#3) Write a script that requires:Select a user randomly from the same UID and GID in/etc/passwd to determine whether th

Memcached+php+mysql+linux Practice

, So I suggest that you can use the timer (Linux Contrab) every few minutes to synchronize the latest memcahced data to the database, even if the server power off, but also lost only a few minutes of data, it is acceptable, of course, the server for no reason the probability of power loss is very small.I would like to compare this with the above example you should see what memcached can solve. Mainly used to alleviate the database pressure.(2) Now a l

Linux workstation anti-virus practice

Article Title: Linux system workstation anti-virus practice. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. 1. avast! Main features of Linux

Linux DHCP service practice

Linux DHCP service practice-Linux Enterprise Application-Linux server application information. The following is a detailed description. We know dhcp is a dynamic IP Address Allocation service pull! In a network, if there are not many computers, we usually manually assign IP addresses and other network settings to each

Install MySQL "Practice Edition" under Linux

boot:Chkconfig--list MySQLView MySQL listens on the listening port (default is 3306 ):Netstat -lt | grep MySQL" MySQL user name, remote login Settings "How to install and start the above MySQL , MySQL after the initial installation, you also need to set up user name, password, and remote login and so on. MySQL by default, only Root user, and the password is blank, this machine is not allowed to log on to other machines. If you want to set a password to root and allow it to telnet, you need to d

Practice--linux Message Queuing msg for interprocess communication

"); Elseprintf ("read from msg queue%d bytes\n", Reval); Msg_stat (MsgId, msg_ginfo); Msg_sinfo.msg_perm.uid=8; Msg_sinfo.msg_perm.gid=8; Msg_sinfo.msg_qbytes=16388; Reval= Msgctl (MsgId, Ipc_set, msg_sinfo); if(Reval = =-1) {printf ("msg Set Info error\n"); return; } msg_stat (MsgId, msg_ginfo); Reval=Msgctl (MsgId, Ipc_rmid, NULL); if(Reval = =-1) {printf ("unlink msg Queue error\n"); return; }}voidMsg_stat (intMsgIdstructMsqid_ds Msg_info) { intReval; Sleep (1); Reval= Msgctl (MsgId,

Linux System password Recovery practice

packages at the same time in the on-site process (it's amazing) because you'll need SSH to provide a remote connection service later, if you do something inside the SSH setup it's a big back door, and MySQL doesn't reinstall. Later, these two problems have to wait for customers to connect the server to the network, the OpenSSH in the Redhat version of the release package of the OpenSSH and Telnet-related packets first to the server, and then install the Telnet-server server, Remove OpenSSH Rein

Linux IPC Practice (--system v Semaphore) (2)

right knife and fork if (Semop (Semid, sops, 1) = =-1) err_exit ("Wait_2fork error");} *///release two cutlery void signal_2fork (unsigned short) {unsigned short left = no; unsigned short right = (no+1)%5; struct SEMBUF sops[2] = {{left, 1, 0}, {right, 1, 0}}; if (Semop (Semid, SOPs, 2) = =-1) err_exit ("Signal_2fork error");} philosopher void philosopher (Unsigned Short No) {Srand (Time (NULL)); while (true) {cout int main () { //Creates a semaphore set: Contains 5 semaphore

Novice Practice Linux Command Line (1)

the things are compressed separately. If you compress the folder, do not add this is not compressed. will display xx is a directory--ignored)-V displays materials such as the name and compression ratio of the file being compressed.-T verifies the integrity of the compressed file.-1 The fastest compression, compression ratio is very low,-9 The best compression, compression ratio is very high, but the rate is very slow. (You can specify a number 1~9, which is 6 levels by default)The gunzip has no

Program hack for Linux Practice

Program hack for Linux PracticeThis time the practice is file hack, let's start with the login executable file! First we execute this executable program① we want to be able to log in without knowing the password. And no matter what the password is, it is prompt "on your command,my master!" ".The program is first disassembled.We'll first find the entrance to the main function. We can see the CMP statement, t

The shell practice of Linux Learning

The shell practice of Linux Learning 1. Describe the operation principle of shell program (can be attached with necessary graphic instructions);2, summarize all the knowledge points involved in shell programming (such as: variables, grammar, command status, etc., to take the picture of Yo);Summary article: http://pizimsn.blog.51cto.com/7002551/16976713, summarize the course of all the circular stateme

Linux OPS Practice case-December 20, 2015-December 31 (first time)

First, the actual case (practice) contentIf you study Linux, want to find a portion of Linux related operations, one day you received a company to give the invitation, you came to the company interview, before the interview, OPS supervisor gave you some simple pen questions, the title is as follows:1, the creation of a 10G file system, the type of EXT4, requires

Linux Process understanding and practice (5) discuss the daemon process

Linux Process understanding and practice (5) discuss the daemon process1. daemon process and Its FeaturesThe most important feature of a daemon is that it runs in the background. At this point, the TSR of the resident memory program under DOS is similar. Second, the daemon must be isolated from the environment before running. These environments include unclosed file descriptors, control terminals, sessions

C Programming Practice in Linux (I) Development Platform Construction

Practice of C Programming in Linux (1) -Development Platform Construction . GCC compiler GCC is the most important development tool in Linux. It is the gnu c and C ++ compilers. Its basic usage is as follows: Gcc [options] [filenames] Options is the compilation option. GCC provides more than 100 compilation options, but only a few are frequently used. We will on

Linux Practice strategy: NFS server troubleshooting

Article Title: Linux Practice strategy: NFS server troubleshooting. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source. In Red Hat Enterprise Linux

Linux Kernel Practice Work queue

--keventd_wq is provided, which is created by the Linux system at initialization time. Users can initialize a Work_struct object directly and then schedule it in that queue for easier use.When the user calls Workqueue's initialization interface Create_workqueue or Create_singlethread_workqueue initializes the Workqueue queue, the kernel begins assigning a Workqueue object to the user. And chain it to a global workqueue queue.

Install nginx1.9.3-0303 under Linux (I personally practice)

]# chkconfig nginx onStart:[[Email protected] lib64]# service Nginx startStarting nginx: [OK] 8. Start error Handling [[Email protected] init.d]# service Nginx startStarting Nginx:/usr/local/nginx/sbin/nginx:error while loading shared libraries:libpcre.so.1:cannot open Shared object File:no such file or directory[FAILED]Using LDD to see the dynamic function libraries contained in Nginx[[email protected] src]# LDD $ (Which/usr/local/nginx/sbin/nginx)

[Principle Analysis]linux The chain list principle practice in the kernel

= (d3->h); D3->value = 4; Node_add ( (D1->h), (D2->h)); Node_add ( (D1->h), (D3->h)); List_value (d1); Node_del ( (D2->h)); List_value (d1); GetChar (); return 0;}The basic function of the design to complete the predetermined. So let's take a look at the Case2-based design, where the Node_add (), Node_del () interface is the same as CASE1, but the List_value () interface cannot be implemented here because the head_node-> When the next interface reaches the next head_n

Linux C programming practice (5 )?? Driver Design

Linux C programming practice (5 )?? Driver Design 1. introduction the device driver is the interface between the operating system kernel and the Machine hardware. it shields the hardware details for applications. Generally, the Linux device driver must complete the following functions: (1) initialize the device. (2) provide various... C programming practices in

Linux practice engineer study Note 3: File System Maintenance

Linux practice engineer study Note 3: file system maintenance-general Linux technology-Linux technology and application information. The following is a detailed description. Original Author: junger Ext2/ext3 store files through data blocks Format a file system: Mkfs. ext3? B 4096? I 8192? M 5/dev/sdb4 -B data block

Total Pages: 13 1 .... 5 6 7 8 9 .... 13 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.