Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Linux Ask!

Nov 132010
 

Display the current hard limit of my Linux server

Answer:

The hard limit of your Linux operating system is the maximum server limit that can be set without tuning the kernel parameters in proc file system.

To show it, you can use the ulimit command:

#  ulimit -aH

core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 20
file size               (blocks, -f) unlimited
pending signals                 (-i) 16382
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) unlimited
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
Nov 102010
 

Display non-printable character in vim

Answer:

To display non-printable characters, such as control characters in vim, you can try the tricks below:

1. Press [ESC] to get into command mode

2. Enter :set list

If you want to turn off the non-printable character, enter :set nolist will revert the option set above.