In Ubuntu system operation, when using sudo, sudo:source:command not found error message. How to deal with this problem? The following small series will introduce the solution to the error sudo:source:command not found in the Ubuntu system.
on the Ubuntu Server execute the following command, you can see the default number of open files is limited to 1024.
$ ulimit -n
1024
Edit the /etc/profile configuration file and add a line at the end:
ulimit -SHn 65535
For the configuration to take effect:
$ sudo source /etc/profile
sudo: source: command not found
We directly execute the ulimit -SHn 65535 command again What?
$ ulimit -SHn 65535
-bash: ulimit: open files: cannot modify limit: Operation not permitted
$ sudo ulimit -SHn 65535
Sudo: ulimit: command not found
After getting the root privilege, the normal user can't find the command. How can I solve this problem?
$ sudo -s
# source /etc/profile
Execute ulimit again, you can see that the limit for opening files has been changed to 65535.
# ulimit -n
65535
The above is how Ubuntu solves the sudo:source:command not found error. If you encounter this problem, try to use it. The methods described in this article are handled and I hope to help you.
Ubuntu 12.04 has a lot of problems when installing Xen, in order to avoid the same mistakes in the i
IPv6 and IPv4 belong to the same network protocol. In Linux systems, when IPv6 and
Ubuntu can use apt-get to get system or software updates, and download these updates from the networ
Many people do not know the specific usage of the tar command in Linux. In fact, th
How to create an unchangeable file in Linux system
Linux installation of MariaDB database through Yum
Detailed steps for mounting Windows shared files in Linux
How to add custom fonts on Linux
What can I do if arm-linux-insight cannot set target under Linux?
RHEL6 changes the name of the asm disk by udev.
How to use the Linux system Passwd command
How to restore the boot partition deleted by CentOS 6
Steps to install Fluentd on RedHat
/usr/bin/ld in Linux: Can't find -lxxx What should I do?
Limit the operation example of IP login shell after Linux user exits the system
How Linux prohibits automatic upgrade of system kernel Kernel
What is the reason why the eDonkey is not connected to the server?
WinXP: Do not pass the secret technology summary
LAN Win7 system and XP system accessibility
Win7 file name, directory name or volume label syntax is incorrect.
Describe in detail the features of Windows OneKey Restore
Modify the registry to expand the number of IE commonly used websites
Win10 system hidden file method
Parsing win8.1 can't activate the problem
Microsoft hopes that Win10 users will provide feedback to help solve Groove application problems