Directory / File Management
Creating a new folder/directory:
mkdir directorynameChanging directory:
cd directorynameListing files and directories
lsMoving files or directories
mv source destinationsCopying files or directories:
cp source destinationRemoving files:
rm filenameRemoving directories:
rm -r directorynameRenaming files or directories:
mv oldname newnameDisplaying the current working directory:
Creating an Empty File
To display the contents of a single file:
To display the contents of multiple files:
To display the contents of a file along with line numbers:
To concatenate multiple files and display the output:
Last updated