Operating system or even applications programs does restrict some characters since it's either used by the system or it is not permitted for some other reasons.
In Linux special characters like ampersand, dashes and other special characters should not be used as folder names or even file names.
But some users or even IT folks violate this rule without knowing the consequences it holds.
Of course, whatever characters available on the keyboard should be used or else what's the point of having them on the keyboard. :)
But there are consequences in using those mentioned characters.
In Linux terminal, if the folder name has an ampersand on its folder name like the image below it cannot be copied easily.
For example navigating in Linux through the terminal using "cd" should be smooth but sometimes simple things can be tough if you don't know how to get around with it.
Navigating folders with special characters using "cd " command is quite simple by enclosing the folder name in double quotes and the user will be able to enter the directory without any issues.
But, how about copying the folder with ampersand or any special characters?
If "cd" is quite simple then we will make copying quite simple as well.
In the above example folder name is: 2018&2017
If you need to copy this folder to another folder then type the following:
cp -r 2018?2017 2018and2017
See the trick replace the ampersand with the wildcard "?" which means any single character.
-r is present to copy recursively whatever is the content of the folder.
Till next time..Cheers!
In Linux special characters like ampersand, dashes and other special characters should not be used as folder names or even file names.
But some users or even IT folks violate this rule without knowing the consequences it holds.
Of course, whatever characters available on the keyboard should be used or else what's the point of having them on the keyboard. :)
But there are consequences in using those mentioned characters.
In Linux terminal, if the folder name has an ampersand on its folder name like the image below it cannot be copied easily.
For example navigating in Linux through the terminal using "cd" should be smooth but sometimes simple things can be tough if you don't know how to get around with it.
Navigating folders with special characters using "cd " command is quite simple by enclosing the folder name in double quotes and the user will be able to enter the directory without any issues.
But, how about copying the folder with ampersand or any special characters?
If "cd" is quite simple then we will make copying quite simple as well.
In the above example folder name is: 2018&2017
If you need to copy this folder to another folder then type the following:
cp -r 2018?2017 2018and2017
See the trick replace the ampersand with the wildcard "?" which means any single character.
-r is present to copy recursively whatever is the content of the folder.
Till next time..Cheers!
================================
Free Android Apps:
Click links below to find out more:
Excel Keyboard guide:
Heaven's Dew Fall Prayer app for Android :
Catholic Rosary Guide for Android:
Comments
Post a Comment