server { listen 80; server_name nginx.org www.nginx.org; root /data/www; location / { ...
We can use the command 'skill -KILL -u <username>' to logout users. Reference: http://www.cyberciti.biz/tips/howto-linux-kill-and-logout-users.html
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 最新的文件排在前面(降序)