Что делает первый «.» означает в '. ~ / .bashrc '? [Дубликат]

Это сработало для меня, вы попробуете:

Если отключение и повторное использование вашей учетной записи не решает проблему, ваши настройки могут быть защищены или недоступны из-за проблемы с разрешениями. Если это так, вы можете удалить свои настройки вручную, используя административную учетную запись. Вот как:

В Linux

Закройте Dropbox, щелкнув правой кнопкой мыши по меню Dropbox в строке меню и выбрав «Завершить открытие терминала» и скопируйте и вставьте следующую строку в терминал ( точно так же, как указано ниже): sudo rm -rfI ~ / .dropbox Вам будет предложено ввести пароль для подтверждения удаления папки Restart Dropbox из меню «Приложения»> «Интернет»

. Когда Dropbox загружается, приложение перестраивает ваши и вам будет предложено вернуться к вашей учетной записи.

Примечание. Мы работаем над тем, чтобы проверить и исправить вашу установку Dropbox автоматически из приложения. Оставайтесь с нами ...

(Из команды справки форума Dropbox)

1
задан 8 October 2014 в 05:17

1 ответ

Если вы хотите что-то проверить в bash, используйте type и man.

В вашем случае вы хотите знать, что есть.

$ type .
. is a shell builtin

shell builtin Значит это . находится внутри bash shell. Вы можете найти информацию о встроенных оболочках на странице руководства bash. Существует большой раздел SHELL BUILTIN COMMANDS

$ man bash

SHELL BUILTIN COMMANDS
       Unless otherwise noted, each builtin command documented in this section
       as accepting options preceded by - accepts -- to signify the end of the
       options.   The  :, true, false, and test builtins do not accept options
       and do not treat -- specially.  The exit, logout, break, continue, let,
       and  shift builtins accept and process arguments beginning with - with‐
       out requiring --.  Other builtins that accept  arguments  but  are  not
       specified  as accepting options interpret arguments beginning with - as
       invalid options and require -- to prevent this interpretation.
       : [arguments]
              No effect; the command does nothing beyond  expanding  arguments
              and  performing any specified redirections.  A zero exit code is
              returned.

        .  filename [arguments]
       source filename [arguments]
              Read and execute commands from filename  in  the  current  shell
              environment  and return the exit status of the last command exe‐
              cuted from filename.  If filename  does  not  contain  a  slash,
              filenames  in  PATH  are  used  to find the directory containing
              filename.  The file searched for in PATH need not be executable.
              When  bash  is  not  in  posix  mode,  the  current directory is
              searched if no file is found in PATH.  If the sourcepath  option
              to  the  shopt  builtin  command  is turned off, the PATH is not
              searched.  If any arguments are supplied, they become the  posi‐
              tional  parameters  when  filename  is  executed.  Otherwise the
              positional parameters are unchanged.  The return status  is  the
              status  of  the  last  command exited within the script (0 if no
              commands are executed), and false if filename is  not  found  or
              cannot be read.
20
ответ дан 24 May 2018 в 05:36
  • 1
    Для встроенных в bash функций help также удобно: help . – Eliah Kagan 5 July 2017 в 13:01

Другие вопросы по тегам:

Похожие вопросы: