command - Description
Examples:
bash code in here
mv - Move file or Rename file
Examples:
mv sourceFile destinationFile
mv sourceFile destinationLocation
mv myFile.txt myFolder/
cp - Copy file or folder
Examples:
cp filename.cpp myCopy.cpp
cp -r myFolder/ myNewFolder
- cp (folder and individual files)
- rm (file and directories)
Examples:
rm <filename>
- rmdir (remove directory) that is empty Examples:
rmdir <directory name>
- ln -s (symbolic link) Examples:
ln -s myfile myotherfile
- scp (secure copy Examples:
scp <filename>
- pwd (print file name of dir) Examples:
pwd
i.e. where you are now in filesystem
- ls (hidden files and files starting or ending with specific patterns like all files ending in txt or all files starting with the letter b) Examples:
<filename/dir> etc.
- tar (saves many files together into a single tape or disk archive, and can restore individual files from the archive.) Examples:
tar -xf archive.tar #extact all files from archive.tar.
- curl (transfer URL)
- wget retrieve networks Examples:
wget [OPTION] ... [URL]...
- scp copies files between hosts on a network Examples:
scp -1 forces scp to use protocol 1
- rsync (copies files) Examples:
rsync [option..] src[...[dest]
- cat
- sort
- uniq
- grep