ESTABAN BWIRE TECH
ESTABAN BWIRE TECH
February 18, 2025 at 10:22 AM
💻 SOME COMMAND LINES FOR ANY TERMINAL 💻 1. apt: You can use it to install, update, and remove packages. For example: - apt update: Update the package list. - apt upgrade: Upgrade installed packages. - apt install package_name: Install a package. - apt remove package_name: Remove a package. 2. pwd: Print the current working directory (folder). 3. ls: List files and directories in the current directory. - ls: List files and directories in the current directory. - ls path/to/directory: List files and directories in the specified directory. 4. cd: Change the current working directory. - cd path/to/directory: Change to the specified directory. - cd ..: Move up one level in the directory structure. - cd: Change to the home directory. 5. mkdir: Create a new directory. - mkdir directory_name: Create a new directory with the specified name. 6. touch: Create a new empty file. - touch filename: Create a new empty file with the specified name. 7. cp: Copy files or directories. - cp source_file destination: Copy a file to a specified destination. - cp -r source_directory destination: Copy a directory and its contents recursively. 8. mv: Move or rename files or directories. - mv source destination: Move a file or rename it to the specified destination. - mv source_directory destination: Move a directory to the specified destination. 9. rm: Remove files or directories. - rm filename: Remove a file. - rm -r directory: Remove a directory and its contents recursively. 10. cat: Display the contents of a file. - cat filename: Display the contents of the specified file. 11. echo: Display a message or variable content. - echo "Hello, World!": Print the message "Hello, World!". 12. chmod: Change file permissions. - chmod permissions filename: Change the permissions of a file. For example, chmod 755 script.sh gives read, write, and execute permissions to the owner, and read and execute permissions to the group and others. 13. ps: Display information about running processes. - ps: Display information about currently running processes. 14. kill: Terminate a process. - kill process_id: Terminate the process with the specified ID.
❤️ 1

Comments