When I start to use a command to terminate an ongoing process, I can include a signal.
What is the difference between the signal 9
and the signal 15
?
When I start to use a command to terminate an ongoing process, I can include a signal.
What is the difference between the signal 9
and the signal 15
?
I want to know what this mean.
ps -A
→ Select all processes. Identical to -e.
What's mean "Identical to -e."?
I have made a simple backup script
Code:
function backups_remove_file
{
echo ""
echo "2. Make Backups Of Files(s)"
echo ""
echo "Which File You Wanna To Make Backups?"
read back
echo "What's The File's Name Should Be After Backups? And Where?"
read after
read -p "Continue (y/n)?" CONT1
if [ "$CONT1" == "y" ]; then
tar -cvpzf "$after.tar.gz" "$back"
echo "Backups File Successful !" ;
else
echo "Backups File Unsuccessful !" ;
fi
}
But there is one small problem I could not fix. When it shows
Which File You Want To Make Backups?
if you write for example "test" after that, and for the next question
What's The File's Name Should Be After Backups? And Where?
if you write for example "test1", then there will be a safety issue if they want to continue or not if type y
it will output:
taking: test: can not state: No such file or directory
tar: Exiting with failure status due to previous errors
Backups File Successful!
The output in that case should be Backups File Unsuccessful!
. What should I do to get the expected output in this case?
I want to make a script that shows what type of file is
for example :
./file.sh haha test lala ssss
haha --> file
test --> directory
lala --> symbolic link
ssss --> executable
Im trying to do like this but I dont get the same result ...
#!/bin/bash
function check_symboliclink
{
echo "Write symbolic link"
read something
find $something -type l
echo "$something symbolic link";
}
check_symboliclink
Is there someone have better idea to do like the example ?
Show how you can add /home/<yourusername>/bin
to the $PATH
variable. Use $HOME
(or ~
) to
represent your home directory.
I have a question I want to know what this command do
ls /usr/bin | grep ”man” | sed ”s/man/###/”
I have use this command and show me everything with ###, but I dont know whats mean. I hope someone can explain it.