Reputation
1,924
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
5 13
Impact
~33k people reached

1d
answered Questions about using ssh and how it relates to users
1d
answered Help creating script to move files based on date or filename
1d
comment CLI command to start playing inserted DVD in VLC?
Have you seen this page: maketecheasier.com/mastering-vlc-via-the-command-line-linux
1d
comment Help creating script to move files based on date or filename
Your requirement seems pretty straight forward, using dateand cut commands and using if statement for comparison of directory names and existence. What have you done so far ? Can you show it in the original post by editing it ?
1d
comment List out the original IP Address of the host
^ is the beginning of line, d is delete, and s is substitute. In the light of these you can figure what those two sed commands are doing
1d
comment Arch Linux - How to run a cron job?
are you sure that /srv/shiny-system/cron/CPU.R exists and have execute permissions ? Also as which user (root or non-root) are you trying to run this crom job ?
1d
answered How can i check my running OS in VPS in Debian 8 64Bit
1d
comment Provide default value if command returns with non-zero exit code
I personally have not seen anything other than || and && constructs to determine the success or failure of an action in the same command space. But again with the enhancements in shell and me being an old timer, it might entirely be possible in a nook and cranny that eludes me and probably you as well
1d
comment Provide default value if command returns with non-zero exit code
does it have to be a one-liner ?
1d
answered Provide default value if command returns with non-zero exit code
1d
comment Bash: Iterating 2 lists using single For In loop
if you explain what actually you are trying to do, instead of a code which does nothing significant, may be you can get a different suggestion than looping through two directories in a single for loop. Just a thought.
1d
answered Bash output redirection to sub directory of current directory
1d
comment Bash output redirection to sub directory of current directory
the reference to a subdirectory of the current directory would be ./subdir/filename or simply subdir/filename. Take your pick
1d
comment Auto mounting network share which is temporary offline
There is a way to figure out the timeout but I really can not remember as it is kinda convoluted. But, if this windows server shutdown without notice is a common occurence, I strongly suggest using autofs you can install it on your linux machine yum install autofs or apt-get install autofs and whatever dependencies it requires. I suggest that you see the PARAGRAPH 4 of this page wiki.centos.org/TipsAndTricks/WindowsShares
2d
comment Auto mounting network share which is temporary offline
variable r is the exit code of the grep command. exit code 0 (zero) means it was successful, i.e., share was mounted. But while it was mounted, someone shuts off the windows machine, then you are out of luck until either forcefully umount the share (if you can of course) or wait for the connection to time out, which might be quite along while
2d
comment How can I know which IP address of a host is reachable from another?
if this is an internet connected machine and you want to know which address it will be reached from the outside world, use: wget http://ipinfo.io/ip -qO -
2d
answered Auto mounting network share which is temporary offline
2d
answered BASH script that check disk space and send email
2d
comment Memory leak on webserver
could you please also post a snapshot from the top command ?If possible extend your terminal length so it shows 20-25 top processes in the list. What you are describing is a typical behavior of running multiple java applications, one or more of which not doing the required janitorial sweep of shared memory
2d
comment replace long text string (script with MANY special characters). sed, awk, grep
I second @GillesQuenot regarding backups. I hope you have a good set of recent backups. Otherwise, you will spend countless hours, trying to fix it and at the end you will ask yourself "if you missed something"