Questions tagged as 'bash'

3
answers

syntax error near unexpected token 'fi' Linux

I had to try to make a code to automate steamcmd but I always got this error syntax error near unexpected token 'fi' , could someone help me? Code: STEAMCMDDOWN="https://steamcdn-a.akamihd.net/client/installer/steamcmd_linux.tar.gz" STEA...
asked by 15.07.2016 / 17:03
1
answer

application for optimization support, shell command correction for mac

I'm wondering how to optimize the following shell command in Mac OSX in order to fulfill the function you want to basically copy all files xx folder to the xx2 folder: ditto $(mdfind xx1) ~/Desktop/xx2 or ditto $(mdfind -onlyin ~/...
asked by 04.07.2016 / 15:57
1
answer

Error Script mv: can not move new_name to new_name / original_name Directory not empty

Hello, I have the following function, the goal is to verify that the folder exists, and delete , extract the file .tar.gz and rename . ssl_v="1.0.2g" ABI="armv6" # Clean then Unzip [ -d openssl-${ssl_v} ] && rm -fr openssl-$...
asked by 05.05.2016 / 01:01
0
answers

SCP Error in Ubuntu Server

I can not access an Ubuntu Server via SFTP. Here is the WinSCP error:    Received too large (1919905652 B) SFTP packet. Max supported packet   size is 1024000 B.The error is typically caused by message printed   from startup script (like .pro...
asked by 02.05.2016 / 22:20
1
answer

Capture Linux logon event using Java [closed]

Hello, I'd like some help to create a class that captures a user's login event on Linux using Java.     
asked by 08.04.2014 / 18:05
1
answer

Is there any protection to prevent dangerous commands in CentOS 7 from running accidentally?

I've been deleting all the files and directories in a specific directory on a Linux CentOS 7 and I came across the following situation: the danger of changing the command sudo rm -fR ./* by sudo rm -fR /* (Forgetting the endpoint bef...
asked by 15.09.2018 / 01:59