Category: operating system

  • head

    Print the first 10 lines of each FILE to standard output. Part of debian coreutils.

  • hexdump

  • true and false

    true . exit with a status code indicating success. false. exit with a status code indicating failure.

  • true and false

    A UNIX Command $true $echo $? 0 $false $echo $? 1 $ UNIX Explanation true – do nothing, successfully exit with a status code indicating success. false – do nothing, unsuccessfully exit with a status code indicating failure. Related Source Code Exposition int main (int argc, char **argv) { if (argc == 2) { initialize_main […]

  • setterm

    setterm sets terminal attributes.

  • pstree 3305

    pstree shows running processes as a tree. when given without pid it take the default pid to be 1(init).

  • pstree . process status tree

    A UNIX Command UNIX Explanation pstree shows running processes as a tree. The tree is rooted at either pid or init if pid is omitted. If a user name is specified, all process trees rooted at processes owned by that user are shown. Related Source Code Exposition static void free_buffers() { if (width != NULL) […]