How do I make aliases hidden in macOS? When I enter in Terminal:

chflags hidden location_of_alias


it hides the actual original folder the alias points to but it does not actually hide the alias itself.

How do I do it?
To change the file flag of a symbolic link, or a Finder alias, rather than its associated file, use the -h option:

$ chflags -h hidden file


To  unhide a file that has the hidden flag set, use:

$ chflags -h nohidden file