Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #31.8K
~3K People Reached
Favorite Forums
Favorite Tags

9 Posted Topics

Member Avatar for Gabriel9999

You can use bash infinite loops with the while loop like while true; do echo "test"; sleep 60; done

Member Avatar for asadalikhan
1
338
Member Avatar for Gabriel9999

There are a lot of ways to list services in a Linux or Ubuntu system. But If you also want to list services status "systemctl list-units" will work for your case perfectly.

Member Avatar for Mornigstar
1
2K
Member Avatar for Gabriel9999

No. You shouldn’t write a bash script. Just use the cp command bulk copy feature and provide all files you want to copy and add the path which is the destination. cp file1 file2 file3 /mnt/backup

Member Avatar for AndrisP
2
402
Member Avatar for Gabriel9999

You can use the -version parameter for the java command like below. java -version Reference: https://www.poftut.com/check-java-version/

Member Avatar for AlVest
0
98
Member Avatar for Gabriel9999

You can use the cut command which will select the specified column. $cat /etc/passwd | cut -d : -f 1 Reference:https://www.poftut.com/list-users-groups-linux/

Member Avatar for pritaeas
0
66
Member Avatar for Gabriel9999

It is easy as just use the following command. For more details take a look https://www.poftut.com/list-repository-packages-yum-command/

Member Avatar for rproffitt
0
66
Member Avatar for Gabriel9999

You can use the shutdown command + option like below. $ sudo shutdown -h +3

Member Avatar for Dani
0
103
Member Avatar for Gabriel9999

It is very easy just put the script file path after the ssh command like below. ssh ismail@192.168.142.144 'bash -s' < cat myscript.sh

Member Avatar for samueltarcin999
0
139
Member Avatar for Gabriel9999

There are different functions and ways to match a word in PHP. Best way is using preg_match() function. In the following example we will search the forum word in the $bigtext content. preg_match('/forum/',$bigtext)

Member Avatar for samueltarcin999
0
213

The End.