server { listen 80; server_name nginx.org www.nginx.org; root /data/www; location / { ...
Error " Generic Status: Library Open failed, Library Name: /dctm65/shared/java/1.5.0_12/jre/lib/i386/libjava.so, Platform Status: libjvm.so: cannot open shared object file: No such file or directory IDQL failed to run. dmAPIInit() returned a failed status. " was thrown when executing IDQL command. I came across this issue after I installed one docbase on linux server. It seemed that ...
You can change the owner and group of a file or a directory with the chown command. Please, keep in mind you can do this only if you are the root user or the owner of the file. Set the file's owner: $ chown username somefile After giving this command, ...
when I booted the Red Hat WS 4 image, I received the following error: "An internal virtual machine error (13) has occurred. The virtual machine will reset now." To resolve this error, first boot in single user mode: In GRUB menu select Red Hat Linux with the version of ...
Find files that contain a text string: grep -lir "some text" * The -l switch outputs only the names of files in which the text occurs (instead of each line containing the text), the -i switch ignores the case, and the -r descends into subdirectories.
If/Else In order for a script to be very useful, you will need to be able to test the conditions of variables. Most programming and scripting languages have some sort of if/else expression and so does the bourne shell. Unlike most other languages, spaces are very important when using ...
The command ‘Y’ or ‘yy’ copies (yanks) one or more lines. To copy one line, two lines, 10 lines, and all lines to the end of the file, respectively: Y 2Y 10Y yG To paste the text contained in the buffer above (uppercase P) or below the current cursor position (lowercase p), respectively: P p It is also ...
Linux general commandLinux general command
ls -l -t为按时间排序显示,默认为新的排在前面,可用下面的命令更改升降序: ls -lrt 最新的文件排在后面(升序) ls -lnt 最新的文件排在前面(降序)
网上有太多关于VI的操作手册了,以下是我从网络上随机找到的短文,以后会把个人的经验都加入来。 vim有3中主要的模式: 1.normal mode:当进入vim时,默认的模式就是normal mode。在此模式下,无法输入任何文字,不过可以利用按键命令来执行许多操作命令,例如移动光标位置、复制、删除。 2.insert mode:进入vim输入a、i、或o键。即可进入insert mode,此模式下可以输入文字内容。 3....