系統(tǒng)之家 - 系統(tǒng)光盤(pán)下載網(wǎng)站!

當(dāng)前位置:系統(tǒng)之家 > 系統(tǒng)教程 > Ubuntu sudo報(bào)錯(cuò)command not fo

Ubuntu sudo報(bào)錯(cuò)command not found怎么辦?

時(shí)間:2015-02-04 13:57:48 作者:qipeng 來(lái)源:系統(tǒng)之家 1. 掃描二維碼隨時(shí)看資訊 2. 請(qǐng)使用手機(jī)瀏覽器訪問(wèn): https://m.xitongzhijia.net/xtjc/20150204/37015.html 手機(jī)查看 評(píng)論

  Ubuntu系統(tǒng)操作中,在使用sudo的時(shí)候出現(xiàn)sudo:source:command not found錯(cuò)誤提示,遇到這種問(wèn)題要如何處理呢?下面小編就給大家介紹下Ubuntu系統(tǒng)中報(bào)錯(cuò)sudo:source:command not found的解決方法。

 Ubuntu sudo報(bào)錯(cuò)command not found怎么辦?

  Ubuntu Server上執(zhí)行以下命令,可以看到默認(rèn)打開(kāi)的文件數(shù)限制為1024個(gè)。

  $ ulimit -n

  1024

  編輯/etc/profile配置文件,在最后添加一行:

  ulimit -SHn 65535

  要讓配置生效:

  $ sudo source /etc/profile

  sudo: source: command not found

  我們直接執(zhí)行ulimit -SHn 65535命令又會(huì)怎么樣呢?

  $ ulimit -SHn 65535

  -bash: ulimit: open files: cannot modify limit: Operation not permitted

  $ sudo ulimit -SHn 65535

  sudo: ulimit: command not found

  普通用戶獲得root權(quán)限后反而提示找不到命令了,該如何解決這個(gè)問(wèn)題呢?

  $ sudo -s

  # source /etc/profile

  再次執(zhí)行ulimit,可以看到打開(kāi)文件的限制數(shù)已改為65535了。

  # ulimit -n

  65535

  上面就是Ubuntu解決sudo:source:command not found錯(cuò)誤的方法介紹了,如果你碰到這個(gè)問(wèn)題,可是嘗試使用本文介紹的方法進(jìn)行處理,希望對(duì)你有所幫助。

標(biāo)簽 Ubuntu

發(fā)表評(píng)論

0

沒(méi)有更多評(píng)論了

評(píng)論就這些咯,讓大家也知道你的獨(dú)特見(jiàn)解

立即評(píng)論

以上留言僅代表用戶個(gè)人觀點(diǎn),不代表系統(tǒng)之家立場(chǎng)

其他版本軟件

熱門(mén)教程

人氣教程排行

Linux系統(tǒng)推薦

掃碼關(guān)注
掃碼關(guān)注

掃碼關(guān)注 官方交流群 軟件收錄