Tagged Questions

A shell is terminology for a command-line interpreter most commonly used with Unix-like operating systems, but also used to interact with GUI-based operating systems in a more granular fashion.
Not only does it allows the user to run programs from a text interface, but frequently offers basic ...

I am sorry to bother all good people. Unfortunately, I am no good with awk and under a past-due deadline.
I suspect that my question is simple for the right person. Perhaps, I am wrong.
Some program ...

The title says it mostly. I'm auditing the security of a terminal-based application on AIX, and the way you use it is to connect to it remotely through telnet, where the ".profile" of the telnet user ...

I created a cron job to trigger a url at set times, which in turn starts a product import script. But for some reason part of the trigger url with parameters is stripped away.
I set the cron job in ...

In my production server which is running SUse 11 SP1, the root shell is set to /bin/eksh. Not sure how come it is set to this..we are using /bin/bash as root's default shell.
I tried to reset it like ...

I have been alerted to by our system that a PHP shell has been found in the /tmp directory. Firstly - I would like to know how it could have got here and why it would be here - is there any way PHP ...

i have a little issues with wget and ftp.
after i download a folder from internet with wget to my home folder in centos server.
wget -r --no-parent --reject "index.html*" http://www.example.com/xxx/
...

I have a script set to run after every minute. But in the script we have mentioned, if a condition is true, the script has to sleep for 5 minutes. How could this affect the crontab? Will the script be ...

Lately there has been a tendency by command line tools to use fancy ANSI colors in their log output (for example, NPM and a host of nodejs based tools, rvm, docker, and a few other "modern" tools).
...

Is there a standard way to know if a shell script is running under cron as opposed to running from the command line. i.e. I'm thinking of running with more verbose output when manually kicked from the ...

I am trying to set up color prompt in asterisk CLI. In the documentation I have found this:
%Cn[;n] Change terminal foreground (and optional background) color to
specified. A full list of colors may ...

I'd like to script adding a share to a smb.conf file. My current script just appends it to the end of the file, but that's not ideal. I'd rather have something that will add a new share if it doesn't ...

We run IBM AIX here (currently 7100-03-03-1415) that is missing a fair amount of the utility preset in other versions of UNIX. One of the things that we need to do on a semi-regular basis is convert ...

I don't understand why this two commands don't provide the same result (the differrence is only relative vs. absolute path), can somebody explain it?
annika /srv/www/pages/com.example.www/www/povruc ...

I'm trying to make a symlink to a directory if it exists only and cannot figure out how.
I tried various ideas I found and none worked.
Most notable idea that i thought would do the job was to use ln ...

I want to copy all gzipped files from my apache logs that were created less than 43 days ago.
As a test, I simply listed my files from find:
sudo find /var/log/apache2/ -mindepth 1 -ctime -43 -name ...

I'm running find . -type d on a rather large directory tree. I am only interested in finding directories within this tree, but when I ran an strace against the process to make sure it was doing what I ...

My client has a 389 directory server installation that I discovered does not have SSL enabled on it. I would like to do this but I've always had to do it using the Admin console. At some point they ...

I'm trying to config SFTP, so that my users can access their own site folder (with PSFTP/FileZilla). I use Vagrant, CentOS7, NGINX and .sh file.
This is my bootstrap.sh, for creating one of my users.
...

How can I find out whether the boost update process is running presently on Cacti? I want to check in a script before I start the regular system backup, delay my backup if it's boost is still running ...

I've created a init.d script called rmCluster which is supposed to execute a simple python script at shutdown which uses boto to shutdown a particular cluster of servers, with 755 perms, located in ...

After scp-ing a shellshock-patched bash binary to an openSUSE 12.2 Linux VM and replacing the login shell with it, no user can log in via ssh or the console. As it turned out, the executable bit got ...