ls: Lists the files and directories in the current directory.
cd: Changes the current working directory. For example, cd Documents will change the current directory to the Documents folder.
mkdir: Creates a new directory. For example, mkdir newfolder will create a new folder named "newfolder".
touch: Creates a new file. For example, touch newfile.txt will create a new file named "newfile.txt".
cp: Copies a file or directory. For example, cp file1.txt file2.txt will create a copy of file1.txt and name it file2.txt.
mv: Moves a file or directory. For example, mv file1.txt Documents/ will move file1.txt to the Documents folder.
rm: Deletes a file. For example, rm file1.txt will delete the file named "file1.txt".
rmdir: Deletes an empty directory. For example, rmdir oldfolder will delete the empty folder named "oldfolder".
pwd: Prints the current working directory.
man: Opens the manual page for a command. For example, man ls will show the manual page for the ls command.
Top comments (0)