• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

rm

Git Remove Files From Repo After Commit

October 4, 2022

If you need to remove files from a repo after committing, use …

Remove file

git rm --cached file.ext

git rm --cached file.ext

Push to repo

git push

git push

Filed Under: Linux Tagged With: cache, commit, git, push, rm

Delete A Symbolic Link

November 21, 2014

In the Unix world, a symbolic is special type of file that references to another file or directory. Symbolic links are also known to others as symlink or softlink. To create a symbolic link, the ln -s command is used to reference a file to another like below.

sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

sudo ln -s /usr/share/phpmyadmin/ /var/www/phpmyadmin

To delete a symbolic link

sudo rm /var/www/phpmyadmin
# or
sudo unlink /var/www/phpmyadmin

sudo rm /var/www/phpmyadmin # or sudo unlink /var/www/phpmyadmin

Filed Under: Linux Tagged With: delete, rm, symbolic link, unlink

  • Home
  • About
  • Archives

Copyright © 2023