Posts

Showing posts from June, 2024

Linux Commands

Basic Linux Commands Navigation and Directory Management: pwd: Print working directory. ls: List directory contents. cd [directory]: Change directory. mkdir [directory]: Create a new directory. rmdir [directory]: Remove an empty directory. rm -r [directory]: Remove a directory and its contents recursively. File Operations:   touch [file]: Create an empty file or update the timestamp of an existing file. cp [source] [destination]: Copy files or directories. mv [source] [destination]: Move or rename files or directories. rm [file]: Remove files. Viewing and Editing Files:   cat [file]: Concatenate and display file content. more [file] or less [file]: View file content with pagination. head [file]: Display the first 10 lines of a file. tail [file]: Display the last 10 lines of a file. nano [file] or vi [file]: Edit files using nano or vi editors. System Information: System Status  df: Display disk space usage. du: Display disk usage of files and d