8000 GitHub - vdudi/Linux-Tips: Linux tips · GitHub
[go: up one dir, main page]

Skip to content

About

Linux tips

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 

Repository files navigation

Linux-Tips

Linux tips

Run a Linux commnad on multiple servers from a single command/loop

for i in {19..22}; do ssh -t 1.2.3.$i "sudo /sbin/service httpd stop" ; done

for i in {19..22}; do ssh -t 1.2.3.$i "sudo /sbin/service httpd start” ; done

Copy SSH keys to a Linux server so you don't have to type password.

ssh-copy-id IP

Delete similar name folders - list & delete

sudo find /home/ -name "2014*" -ls

sudo find /home/ -name "2014*" -exec rm -rf {} ;

About

Linux tips

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

0