- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
ulimitcommand fails with below error:
# strace ulimit strace: Can't stat 'ulimit': No such file or directory
Below is the workaround for
Red Hat Enterprise Linux 6 and
Red Hat Enterprise Linux 7
- Create file named as
/usr/bin/directory and edit to call the builtin function
# vi /usr/bin/ulimit #!/bin/sh builtin ulimit "$@"
# chmod +x /usr/bin/ulimit
- After following above steps
stracewill run on
- Red Hat Enterprise Linux 8 Beta has the
/usr/bin/ulimitexecutable file by default provided by
# rpm -ql bash-4.4.19-6.el8.x86_64 | grep -i ulimit /usr/bin/ulimit -- # cat /usr/bin/ulimit #!/bin/sh builtin ulimit "$@"
ulimitis a builtin function of
bashrpm. But when
straceruns, it looks for
ulimitfile and returns error
strace: Can't stat 'ulimit': No such file or directoryas it could not find it.
ulimitfile does not exist by default under any path of the executables. Hence
stracereturns error when it runs on
- Verification of
whichcommand, shows file is not present in
Red Hat Enterprise Linux 6and
Red Hat Enterprise Linux 7:
# which ulimit /usr/bin/which: no ulimit in (/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
- Red Hat Enterprise Linux
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.