Skip to content

mfsiat/notes

Repository files navigation

Some Basics

Publish a webpage on GitHub Pages

To publish a webpage on github pages we can simply name the repositry on this syntax username.repoName.io or we can just go to the settings page and there is an option for publish our webpage on github pages.

Git Basics:

  • To completely remove a tracked folder or file from being tracked again.

  • When we have large files bigger than 100 mb which could not be uploaded via git we do

git filter-branch --index-filter 'git rm --cached --ignore-unmatch bigfile_name'

Linux commands

  • To know any commands just type
man cp
  • systemctl - this commands uses for various system purpose.
sudo systemctl status apache2
  • pwd - print working directory

  • mkdir - make directory

  • ls -a - show all folder and files including hidden files.

  • To copy a file :

cp target_file new_file
  • To move a file : this also renames the file
mv target_file new_file
  • To move within a directory :
mv targetfile target_directory
  • To delete a file : just rm directory/file name beware there is no asking so there gone means gone

  • To copy a directory we need to use -R. It mainly forces our commands.

  • Find Command: just uses the find command. there are lots of options on find

# find all directories on current directory
find . -type d 
# find all files on current directory
find . -type f
# find file with a name on current directory 
find . -type f -name "filename.txt"
# using wild card or same name which i dont know 
find . -type f -name "samename*"
# -name is case sensitive so make it insensitive 
find . -type f -iname "test*" 
  • Files that are modified: We can also find this files using time limit. like files that are modified in the last hour or 10 minutes etc.
find . -type f -min -10

About

Notes on different topics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published