What are some other built-in commands?

081

Here are some common built-in commands in Linux:

  1. cd: Changes the current directory.

    cd /path/to/directory
  2. echo: Displays a line of text or variable value.

    echo "Hello, World!"
  3. pwd: Prints the current working directory.

    pwd
  4. history: Shows the command history.

    history
  5. exit: Exits the shell or terminal session.

    exit
  6. alias: Creates an alias for a command.

    alias ll='ls -l'
  7. unset: Removes a variable or function.

    unset VARIABLE_NAME
  8. set: Sets shell options and positional parameters.

    set -x  # Enables debugging
  9. type: Displays the type of a command (built-in, external, or alias).

    type command_name
  10. jobs: Lists active jobs in the current shell session.

    jobs

These built-in commands are essential for navigating and managing your shell environment efficiently. If you want to learn more about any specific command, feel free to ask!

0 Comments

no data
Be the first to share your comment!