diff --git a/pages.zh/osx/hexdump.md b/pages.zh/common/hexdump.md similarity index 74% rename from pages.zh/osx/hexdump.md rename to pages.zh/common/hexdump.md index c999ca8375..8c5f374868 100644 --- a/pages.zh/osx/hexdump.md +++ b/pages.zh/common/hexdump.md @@ -1,6 +1,7 @@ # hexdump -> 一个 ASCII、十进制、十六进制、八进制转换查看工具。 +> 一个 ASCII,十进制,十六进制,八进制转换查看工具。 +> 更多信息:. - 打印文件的十六进制表示形式: diff --git a/pages.zh/osx/logger.md b/pages.zh/common/logger.md similarity index 100% rename from pages.zh/osx/logger.md rename to pages.zh/common/logger.md diff --git a/pages.zh/osx/n.md b/pages.zh/common/n.md similarity index 100% rename from pages.zh/osx/n.md rename to pages.zh/common/n.md diff --git a/pages.zh/osx/netstat.md b/pages.zh/common/netstat.md similarity index 100% rename from pages.zh/osx/netstat.md rename to pages.zh/common/netstat.md diff --git a/pages.zh/osx/pdfgrep.md b/pages.zh/common/pdfgrep.md similarity index 100% rename from pages.zh/osx/pdfgrep.md rename to pages.zh/common/pdfgrep.md diff --git a/pages/linux/hexdump.md b/pages/common/hexdump.md similarity index 100% rename from pages/linux/hexdump.md rename to pages/common/hexdump.md diff --git a/pages/linux/logger.md b/pages/common/logger.md similarity index 100% rename from pages/linux/logger.md rename to pages/common/logger.md diff --git a/pages/linux/n.md b/pages/common/n.md similarity index 100% rename from pages/linux/n.md rename to pages/common/n.md diff --git a/pages/linux/netstat.md b/pages/common/netstat.md similarity index 100% rename from pages/linux/netstat.md rename to pages/common/netstat.md diff --git a/pages/linux/nm.md b/pages/common/nm.md similarity index 100% rename from pages/linux/nm.md rename to pages/common/nm.md diff --git a/pages/linux/pdfgrep.md b/pages/common/pdfgrep.md similarity index 100% rename from pages/linux/pdfgrep.md rename to pages/common/pdfgrep.md diff --git a/pages/osx/hexdump.md b/pages/osx/hexdump.md deleted file mode 100644 index 1b813d7b7d..0000000000 --- a/pages/osx/hexdump.md +++ /dev/null @@ -1,16 +0,0 @@ -# hexdump - -> An ASCII, decimal, hexadecimal, octal dump. -> More information: . - -- Print the hexadecimal representation of a file: - -`hexdump {{file}}` - -- Display the input offset in hexadecimal and its ASCII representation in two columns: - -`hexdump -C {{file}}` - -- Display the hexadecimal representation of a file, but interpret only n bytes of the input: - -`hexdump -C -n{{number_of_bytes}} {{file}}` diff --git a/pages/osx/logger.md b/pages/osx/logger.md deleted file mode 100644 index d5bad38eb6..0000000000 --- a/pages/osx/logger.md +++ /dev/null @@ -1,23 +0,0 @@ -# logger - -> Add messages to syslog (/var/log/syslog). - -- Log a message to syslog: - -`logger {{message}}` - -- Take input from stdin and log to syslog: - -`echo {{log_entry}} | logger` - -- Send the output to a remote syslog server running at a given port. Default port is 514: - -`echo {{log_entry}} | logger -h {{hostname}} -P {{port}}` - -- Use a specific tag for every line logged. Default is the name of logged in user: - -`echo {{log_entry}} | logger -t {{tag}}` - -- Log messages with a given priority. Default is `user.notice`. See `man logger` for all priority options: - -`echo {{log_entry}} | logger -p {{user.warning}}` diff --git a/pages/osx/n.md b/pages/osx/n.md deleted file mode 100644 index cc3db8f9f5..0000000000 --- a/pages/osx/n.md +++ /dev/null @@ -1,23 +0,0 @@ -# n - -> Tool to manage multiple node versions. - -- Install a given version of node. If the version is already installed, it will be activated: - -`n {{version}}` - -- Display installed versions and interactively activate one of them: - -`n` - -- Remove a version: - -`n rm {{version}}` - -- Execute a file with a given version: - -`n use {{version}} {{file.js}}` - -- Output binary path for a version: - -`n bin {{version}}` diff --git a/pages/osx/netstat.md b/pages/osx/netstat.md deleted file mode 100644 index 279542e800..0000000000 --- a/pages/osx/netstat.md +++ /dev/null @@ -1,24 +0,0 @@ -# netstat - -> Displays network-related information such as open connections, open socket ports, etc. -> More information: . - -- List all ports: - -`netstat -a` - -- List all listening ports: - -`netstat -l` - -- List listening TCP ports: - -`netstat -t` - -- Display PID and program names for a specific protocol: - -`netstat -p {{protocol}}` - -- Print the routing table: - -`netstat -nr` diff --git a/pages/osx/nm.md b/pages/osx/nm.md deleted file mode 100644 index 037817c1bd..0000000000 --- a/pages/osx/nm.md +++ /dev/null @@ -1,19 +0,0 @@ -# nm - -> List symbol names in object files. - -- List global (extern) functions in a file (prefixed with T): - -`nm -g {{file.o}}` - -- List only undefined symbols in a file: - -`nm -u {{file.o}}` - -- List all symbols, even debugging symbols: - -`nm -a {{file.o}}` - -- Demangle C++ symbols (make them readable): - -`nm -demangle {{file.o}}` diff --git a/pages/osx/pdfgrep.md b/pages/osx/pdfgrep.md deleted file mode 100644 index 3690472c2a..0000000000 --- a/pages/osx/pdfgrep.md +++ /dev/null @@ -1,23 +0,0 @@ -# pdfgrep - -> Search text in PDF files. - -- Find lines that match pattern in a PDF: - -`pdfgrep {{pattern}} {{file.pdf}}` - -- Include file name and page number for each matched line: - -`pdfgrep --with-filename --page-number {{pattern}} {{file.pdf}}` - -- Do a case-insensitive search for lines that begin with "foo" and return the first 3 matches: - -`pdfgrep --max-count {{3}} --ignore-case {{'^foo'}} {{file.pdf}}` - -- Find pattern in files with a `.pdf` extension in the current directory recursively: - -`pdfgrep --recursive {{pattern}}` - -- Find pattern on files that match a specific glob in the current directory recursively: - -`pdfgrep --recursive --include {{'*book.pdf'}} {{pattern}}`