Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 628 Bytes

LinuxCommands.md

File metadata and controls

31 lines (28 loc) · 628 Bytes
  1. date command
date
  1. calender command
cal 1 2020
  1. go to previous working directory
cd -
  1. list the file based on modification date.
ls -t
  1. rmdir dir1 dir2 dir3 -> remove only empty directory
  2. rm file1 file2 file3 -. remove files
  3. rm -R dir1 -> delete dir1 recursively
  4. rm -i file -> will ask to you to remove it
  5. rm -Ri dir1 -> ineractively ask you to delete the stuff inside the dir1
rm -f file1 file2 file3
rm -Rv dir1 - will show verbose -> r is caseinsensitive
cp file1 file2 dir1 -> copy both file1 and file2
cp -R dir1 dir2 -> copy recursively dir1 to dir2