Skip to content

bentheredonethat/notes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Notes

Entry Template

command - Description

Examples:

bash code in here

File Management

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.

File Transfer

  • 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]

Pipe tools

  • cat
  • sort
  • uniq
  • grep

About

Examples and notes for commonly used commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published