Make a file executable in Linux
Answer:
Assume you have create a shell script, my.sh, you need to make this file executable, you can use the chmod command.
# chmod +x my.sh
Then you can execute the script directly
# ./my.sh
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Make a file executable in Linux
Answer:
Assume you have create a shell script, my.sh, you need to make this file executable, you can use the chmod command.
# chmod +x my.sh
Then you can execute the script directly
# ./my.sh
How do you pronunce 'Linux'?
Answer:
Check out the pronunciation by Linus Torvalds, the creator of the Linux.
How can I clear the command history in Linux?
Answer:
Try:
history -c
Why can't I telnet into my Linux box as root?
Answer:
By default, some distributions prohibit root from logging in remotely, unless you first log in as a regular user, and then "su" to root. This feature provides an extra layer of security in case the password of the root account is compromised.
Although it is not recommended, this restriction can be removed by deleting the file /etc/securetty. For more information, type "man securetty".
How to cp (copy) files without asking for confirmation?
Answer:
1. Type the following
unalias cp
2. Then copy the files using the cp command.