Browsed by
Month: August 2015

which vs whereis vs locate vs find

which vs whereis vs locate vs find

There multiple search commands in linux and it is good to know when use of particular command is relevant. which Shows the full path of (shell) commands. For example:

  whereis Locate the binary, source, and manual page files for a command.

  locate Find files by name. For example let’s locate where is my system storing backup of /etc/passwd:

  find Search for files in a directory hierarchy. Let’s find all files in my home directory…

Read More Read More

Oracle: fetch DDL for objects

Oracle: fetch DDL for objects

Getting schema (DDL) for Oracle objects (for example a table) is simple.

Valid arguments for function get_dll are: TABLE VIEW FUNCTION TABLESPACE Further information: psoug.org

XML: file formatting

XML: file formatting

xmllint is a command line XML tool. It can be used to format XML files (for example long one-liners, making them more readable for human reader). Sample usage: xmllint --format file.xml > formatted_file.xml Manual is available also online: xmlsoft.org/xmllint.html