diff --git a/pages.pt_BR/linux/compgen.md b/pages.pt_BR/common/compgen.md similarity index 100% rename from pages.pt_BR/linux/compgen.md rename to pages.pt_BR/common/compgen.md diff --git a/pages.zh/osx/compgen.md b/pages.zh/common/compgen.md similarity index 79% rename from pages.zh/osx/compgen.md rename to pages.zh/common/compgen.md index 717e75159..2649d7522 100644 --- a/pages.zh/osx/compgen.md +++ b/pages.zh/common/compgen.md @@ -1,7 +1,7 @@ # compgen > 用于在 bash 中自动完成的内置命令,按两次 tab 键即可调用该命令。 -> 更多信息:. +> 更多信息:. - 显示所有可以执行的命令: diff --git a/pages.zh/osx/eval.md b/pages.zh/common/eval.md similarity index 100% rename from pages.zh/osx/eval.md rename to pages.zh/common/eval.md diff --git a/pages.zh/osx/export.md b/pages.zh/common/export.md similarity index 77% rename from pages.zh/osx/export.md rename to pages.zh/common/export.md index 7ac6dfc24..6a0f87b92 100644 --- a/pages.zh/osx/export.md +++ b/pages.zh/common/export.md @@ -1,7 +1,7 @@ # export > 命令为当前 shell 中的子进程进行环境变量设置。 -> 更多信息:. +> 更多信息:. - 设置为新的环境变量: diff --git a/pages.zh/osx/file.md b/pages.zh/common/file.md similarity index 100% rename from pages.zh/osx/file.md rename to pages.zh/common/file.md diff --git a/pages/linux/compgen.md b/pages/common/compgen.md similarity index 100% rename from pages/linux/compgen.md rename to pages/common/compgen.md diff --git a/pages/linux/eval.md b/pages/common/eval.md similarity index 100% rename from pages/linux/eval.md rename to pages/common/eval.md diff --git a/pages/linux/export.md b/pages/common/export.md similarity index 100% rename from pages/linux/export.md rename to pages/common/export.md diff --git a/pages/linux/file.md b/pages/common/file.md similarity index 100% rename from pages/linux/file.md rename to pages/common/file.md diff --git a/pages/osx/compgen.md b/pages/osx/compgen.md deleted file mode 100644 index 64dcbc29c..000000000 --- a/pages/osx/compgen.md +++ /dev/null @@ -1,24 +0,0 @@ -# compgen - -> A built-in command for auto-completion in Bash, which is called on pressing TAB key twice. -> More information: . - -- List all commands that you could run: - -`compgen -c` - -- List all aliases: - -`compgen -a` - -- List all functions that you could run: - -`compgen -A function` - -- Show shell reserved keywords: - -`compgen -k` - -- See all available commands/aliases starting with 'ls': - -`compgen -ac {{ls}}` diff --git a/pages/osx/eval.md b/pages/osx/eval.md deleted file mode 100644 index 27e0f8b5e..000000000 --- a/pages/osx/eval.md +++ /dev/null @@ -1,12 +0,0 @@ -# eval - -> Execute arguments as a single command in the current shell and return its result. -> More information: . - -- Call `echo` with the "foo" argument: - -`eval "{{echo foo}}"` - -- Set a variable in the current shell: - -`eval "{{foo=bar}}"` diff --git a/pages/osx/export.md b/pages/osx/export.md deleted file mode 100644 index 509532557..000000000 --- a/pages/osx/export.md +++ /dev/null @@ -1,16 +0,0 @@ -# export - -> Command to mark shell variables in the current environment to be exported with any newly forked child processes. -> More information: . - -- Set a new environment variable: - -`export {{VARIABLE}}={{value}}` - -- Remove an environment variable: - -`export -n {{VARIABLE}}` - -- Append something to the PATH variable: - -`export PATH=$PATH:{{path/to/append}}` diff --git a/pages/osx/file.md b/pages/osx/file.md deleted file mode 100644 index 811964467..000000000 --- a/pages/osx/file.md +++ /dev/null @@ -1,24 +0,0 @@ -# file - -> Determine file type. -> More information: . - -- Give a description of the type of the specified file. Works fine for files with no file extension: - -`file {{filename}}` - -- Look inside a zipped file and determine the file type(s) inside: - -`file -z {{foo.zip}}` - -- Allow file to work with special or device files: - -`file -s {{filename}}` - -- Don't stop at first file type match; keep going until the end of the file: - -`file -k {{filename}}` - -- Determine the mime encoding type of a file: - -`file -I {{filename}}`