How to hide commands typed in a Linux shell?
Is there a way to hide what I’m typing in a shell, so the terminal doesn’t echo my keystrokes, while still keeping the output of the command?
Is there a way to hide what I’m typing in a shell, so the terminal doesn’t echo my keystrokes, while still keeping the output of the command?
Is there a way (from a script) to identify the default system package manager?
I’m new to shell scripting and I came across these expressions
> echo "hi" hi > VAR='echo "hi"' > $VAR "hi" Why is the output of the above commands different? A similar thing occurs with single quotes: > VAR="echo 'hi'" > $VAR > 'hi' Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the … Read more
I found a guide that explains how to set a user’s password. I’m trying to automate it and send an e-mail to the user like:
When I do – CD .. instead of cd ..
it gives me error saying –
I have a folder in which I have around 4k files. Some of these files start with a a ? or ! character. I need to delete them but can’t find an expression that would do so:
If I have a directory containing some files whose names have spaces, e.g.
I have picked up — probably on Usenet in the mid-1990s (!) — that the construct
The runtime arguments are as follows: $1 is the path to the file containing the list of files
$2 is the path to the directory containing the files
What I want to do is check that each file listed in $1 exists in the $2 directory