{"id":179,"date":"2019-11-03T23:37:26","date_gmt":"2019-11-03T23:37:26","guid":{"rendered":"https:\/\/joalm.com\/blog\/?p=179"},"modified":"2023-12-15T03:24:26","modified_gmt":"2023-12-15T03:24:26","slug":"comandos","status":"publish","type":"post","link":"https:\/\/joalm.com\/blog\/index.php\/2019\/11\/03\/comandos\/","title":{"rendered":"Comandos m\u00e1s usados"},"content":{"rendered":"\n\n\n\t<div class=\"dkpdf-button-container\" style=\" text-align:right \">\n\n\t\t<a class=\"dkpdf-button\" href=\"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/179?pdf=179\" target=\"_blank\"><span class=\"dkpdf-button-icon\"><i class=\"fa fa-file-pdf-o\"><\/i><\/span> Descargar<\/a>\n\n\t<\/div>\n\n\n\n\n\n\n<p>Es este peque\u00f1o post mostraremos los comandos m\u00e1s usados en linux.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">LINUX<\/h2>\n\n\n\n<div class=\"wp-block-group has-medium-font-size is-content-justification-center is-nowrap is-layout-flex wp-container-core-group-is-layout-1 wp-block-group-is-layout-flex\">\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Comandos b\u00e1sicos<\/h3>\n\n\n\n<ul>\n<li>Crear directorio con permisos : <strong>mkdir -m 777 dirname <\/strong><\/li>\n\n\n\n<li>Remover directorio :<strong> rm -Rf dirname<\/strong> (recursivo)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Agregar usuario en ubuntu<\/h3>\n\n\n\n<p>sudo adduser <strong>user<\/strong><br>sudo passwd <strong>user password<\/strong><br>sudo nano \/etc\/ssh\/sshd_config : PasswordAuthentication yes<br>sudo nano \/etc\/sudoers<br><strong>user <\/strong>ALL=(ALL:ALL) ALL<br>sudo service ssh restart<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Agregar usuario en Amazon Linux 2 AMI<\/h3>\n\n\n\n<p>sudo adduser <strong>user<\/strong><br>sudo passwd <strong>user password<\/strong><br>sudo nano \/etc\/ssh\/sshd_config : PasswordAuthentication yes<br>sudo nano \/etc\/sudoers<br><strong>user <\/strong>ALL=(ALL) ALL<br>sudo systemctl restart sshd<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Incrementar volumen Amazon Linux 2 AMI<\/h3>\n\n\n\n<p>lsblk<br>sudo growpart \/dev\/nvme0n1 1<br>sudo xfs_growfs -d \/<br>df -h<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">PM2<\/h2>\n\n\n\n<div class=\"wp-block-group has-medium-font-size is-content-justification-center is-nowrap is-layout-flex wp-container-core-group-is-layout-2 wp-block-group-is-layout-flex\">\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Alta de proceso pm2<\/h3>\n\n\n\n<p>pm2 start {<strong>ruta<\/strong> <strong>archivo<\/strong>} &#8211;name &#8220;API&#8221;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Alta de proceso pm2 cluster<\/h3>\n\n\n\n<p>pm2 start {<strong>ruta<\/strong> <strong>archivo<\/strong>} -i 4 &#8211;name &#8220;API&#8221; &#8211;node-args=&#8221;&#8211;max_old_space-size=12288&#8243;<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">PHYTHON<\/h2>\n\n\n\n<div class=\"wp-block-group has-medium-font-size is-content-justification-center is-nowrap is-layout-flex wp-container-core-group-is-layout-3 wp-block-group-is-layout-flex\">\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Despliegue de aplicaciones<\/h3>\n\n\n\n<p>systemctl list-units &#8211;type=service<\/p>\n\n\n\n<p>systemctl status nombre_del_servicio<\/p>\n\n\n\n<p>sudo systemctl restart nombre_del_servicio<\/p>\n\n\n\n<p><a href=\"https:\/\/medium.com\/@nidhinbabukuttan\/deploying-a-flask-application-with-systemd-on-ubuntu-5c767bf2f3b4\">https:\/\/medium.com\/@nidhinbabukuttan\/deploying-a-flask-application-with-systemd-on-ubuntu-5c767bf2f3b4<\/a><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Enlaces \u00fatiles<\/h2>\n\n\n\n<p><a href=\"https:\/\/www.bogotobogo.com\/DevOps\/AWS\/aws-adding-a-ssh-user-account-on-linux-instance.php\">https:\/\/www.bogotobogo.com\/DevOps\/AWS\/aws-adding-a-ssh-user-account-on-linux-instance.php<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/recognize-expanded-volume-linux.html\">https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/recognize-expanded-volume-linux.html<\/a><\/p>\n\n\n\n<p><\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusiones<\/h2>\n\n\n\n<p>Esttos son algunos de los comandos que te pueden ser de utilidad en Linux.<\/p>\n\n\n\n<p>Muchas gracias por leer este post espero que te haya sido de mucha \nutilidad, no olvides comentar y lo m\u00e1s importante de todo compartir\u2026 \ud83e\udd29<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Descargar Es este peque\u00f1o post mostraremos los comandos m\u00e1s usados en linux. LINUX Comandos b\u00e1sicos Agregar usuario en ubuntu sudo adduser usersudo passwd user passwordsudo nano \/etc\/ssh\/sshd_config : PasswordAuthentication yessudo nano \/etc\/sudoersuser ALL=(ALL:ALL) ALLsudo service ssh restart Agregar usuario en Amazon Linux 2 AMI sudo adduser usersudo passwd user passwordsudo nano \/etc\/ssh\/sshd_config : PasswordAuthentication yessudo nano \/etc\/sudoersuser ALL=(ALL) ALLsudo systemctl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":183,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/joalm.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/179"}],"collection":[{"href":"https:\/\/joalm.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joalm.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joalm.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joalm.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":19,"href":"https:\/\/joalm.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":308,"href":"https:\/\/joalm.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/179\/revisions\/308"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/joalm.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/183"}],"wp:attachment":[{"href":"https:\/\/joalm.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joalm.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joalm.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}