Manipulate Files & Directories Navigate directories pwd: Display path of current directory you’re in ls: List all files and folders in the current directory ls -la: List detailed list of files and folders, including hidden ones Change to a specific directory cd: Change to home directory cd /user/Desktop: Change to a specific directory called Desktop cd .. : Move back a directory Create a directory/folder mkdir <dir>: Create a new directory mkdir /home/Desktop/dir: Create a directory in a specific location Create and edit files touch <file>: Create an empty file nano <file>: Edit an existing file or create it if it doesn’t exist. Alternatives to nano text editor: vim, emacs Copy, move and rename files and directories cp <file1> <file2>: Create a copy of a file cp -r <dir1> <dir2>: Create a copy of a directory and everything in it cp <file> /home/Desktop/file2: Create a copy of a file in a ...
A guide for kali linux users to benefit from, tools, tutorials, and much more