Posts

Showing posts from August, 2015

How to remove a kickstart distribution on Spacewalk 2.3 / Satellite 5.7

On Spacewalk or Satellite follow these steps delete kickstart distribution entries from Satellite database: # spacewalk-sql -i To get the id of the distribution   rhnschema=# select id,label from rhnKickstartableTree;   To remove the distribution   rhnschema=# delete from rhnKickstartableTree where ID=<kickstart_id>;    Quit from the sql rhnschema=# \q

How to remove files or directories files with names that contains spaces, and special characters such as -, -- @ <> etc

Image
Remove file by an inode number The -i option to ls displays the index number (inode) of each file:   ls -li Use find command as follows to delete the file if the file has inode number 4063242:   $ find . -inum 4063242 -delete OR   $ find . -inum 4063242 -exec rm -i {} \;