- ls — List files and directories in the current working directory.
- pwd — Output the absolute path of the working directory.
- cd — Change the current directory to a specified path.
- pushd/popd — Save and restore directories using a stack for quick navigation.
- file — Identify the type of a file based on its content.
- locate — Quickly find files by name using a pre‑built database.
- updatedb — Refresh the file name database used by locate.
- which — Show the full path of a command’s executable.
- history — Display a numbered list of recently executed commands.
Getting Help
- whatis — Display a one‑line description of a command from the manual.
- apropos — Search manual page names and descriptions for a keyword.
- man — Open the detailed manual for a command.
Working with Files
- mkdir — Create one or more new directories.
- touch — Update file timestamps or create an empty file if it doesn’t exist.
- cp — Copy files and directories from one location to another.
- mv — Move or rename files and directories.
- rm — Permanently delete files or directories.
- rmdir — Remove empty directories only.
Working with Text Files
- cat — Concatenate and display file content on the terminal.
- more/less — View file contents one screen at a time, with navigation.
- nano — A simple, beginner‑friendly terminal text editor.
Managing Users
- sudo — Run a command with elevated privileges as another user (default root).
- su — Switch to another user account in the terminal session.
- users — List the usernames of currently logged‑in users.
- id — Display your user ID, group ID, and supplementary group memberships.
Changing File Permissions
- chmod — Modify read, write, and execute permissions for a file or directory.
Killing Programs and Logging Out
- Ctrl+C — Interrupt and terminate the foreground process.
- killall — Terminate all processes matching a given name.
- exit — Close the current shell session or log out.
No comments :
Post a Comment
Your Comment and Question will help to make this blog better...