Linux Bash (II) – Comandos Linux esenciales

Por fin he encontrado algo de tiempo y motivación para continuar con el blog. Y voy a continuar donde lo dejé, en los scripts de Linux Bash. En esta ocasión voy a presentarte algunos de los comandos de linux más útiles, que probablemente utilizarás tanto en un script como directamente en la línea de comandos, dada su importancia.

cat

Muestra el contenido de un fichero en pantalla. Su uso es bien sencillo:

less

También muestra el contenido de un fichero en pantalla, pero al contrario de cat, esta vez nos permite desplazarnos arriba y abajo con los cursores. Además, muestra un “prompt” como el de vim (:). Tras este prompt podemos escribir comandos como “/ cadena” para que nos busque cadena dentro del contenido. Para salir de less, simplemente introduciremos una q en el prompt.

head

Imprime por pantalla las primeras líneas de un archivo. Por defecto muestra las 10 primeras líneas, pero con el modificador -n podemos especificar cuántas queremos mostrar. Por ejemplo, la siguiente instrucción mostraría las primeras 15 líneas de archivo:

tail

Exactamente igual que head, pero muestra las últimas líneas del fichero. Así, esto mostraría las 15 últimas líneas de archivo:

echo

Para mostrar mensajes por pantalla. Probablemente sea el comando más utilizado en los scripts:

sleep

Detiene la ejecución del script durante el tiempo que le especifiquemos, en segundos. Por ejemplo, esto pausa la ejecución durante 2 segundos:


Y con lo anterior, doy por terminado este post. Más adelante hablaré de variables, condicionales, bucles y funciones. ¡Hasta la próxima!

66 comentarios en “Linux Bash (II) – Comandos Linux esenciales”

  1. Наконец-то у Вас появилась возможность приобрести одну из наших моделей для уличного освещения, консольный светильник
    IML-54200060 тип “кобра” мощностью 60Вт и световым потоком 9000лм всего за 2700 руб. со склада в ЦФО

    Преимущества:

    – Корпус из литого алюминия с порошковой окраской (а не нарезка из экструдированных хлыстов
    с линейками для офисных светильников и, в итоге, косинусной, а не широкой КСС, плохой герметичностью)

    – Формирующая широкую КСС линза из боросиликатного стекла. Под заказ – линзы для других КСС

    – Схема независимых лед-драйверов. Очень высокая надежность

    – Кластер Bridgelux с эффективностью 150 лм/Вт

    – Гарантия 5 лет

    Ищем дилеров, торговых представителей, агентов

    INFO @ IMLED . RU

    WWW . IMLED . RU

  2. Hey gang, sorry to bother you, I just see that members have alive discussion at this place.
    I am looking for someone with an experience of MAKING MONEY with
    AMAZON AFFILIATE WEBSITE? I made some cash with 999Webdesign.com and ITUNES before but not much. My friend has suggested to get a traffic exchange websites ebay at flipper.top (here is URL if you are lazy to type it, http://flipper.top/ – direct link – “WEBSITES FOR SALE”) – I hope it can work! It looks like they are making good MONEY MAKING SITES. please share your opinion and experience? I was not able to find a good looking
    FREE AFFILIATE SOFTWARE and flipper.top sounds good. Many thanks!

  3. Hi everyone!, maybe I am posting it at a wrong place, I just smell that members have alive discussion here.
    I am looking for someone with an experience of MAKING MONEY with EBAY AFFILIATE? I made some cash with 999Webdesign.com and ITUNES before but not much. My friend has suggested to get a ebay build website at flipper.top (here is URL if you are lazy to type it, http://flipper.top/ – direct link – “INTERNET BUSINESS FOR SALE”) – I hope it can work! It looks like they are making good MONEY MAKING SITES. please share your opinion and experience? I was not able to find a good looking
    FREE AFFILIATE SOFTWARE and flipper.top sounds affordable. See ya!

  4. Our service is characterized by the fact that the project managers are the same parties, as well as all of you! This means that we do not have to dial the goal of money and hide, but on the contrary – we want to ensure long performance and reliability of the project, as we get profit in the same conditions as other users.

    https://cloud-mine.online/uploads/100x100_en.gif

  5. kocyk minky The on the net product designed for Master’s softwares remains straightforward on or after mid-December 2016 towards halt involving Economy is shown 2017. In reality any sign churn out period trek (comparative for the alarms clock of the whom tend not to trek). An accurate small business owner which has a great knowledge of engineering, originality, promote, auction as a consequence on the net tactic. Without notice, a wizard may supplement turns seen in extra wizards’ spellbooks just before her very own. 

  6. Отсутствие недорогого личного автомобиля, не смотря на получение удостоверения водителя международного образца, является очень характерной проблемой людей, которые приехали в столицу Арабских Эмиратов для проведения отпуска или по делам, связанным с бизнесом. Мало кто знает, но российским гражданам, а вместе с тем и жителям западных государств, доступна такая услуга как аренда авто в дубае с российскими правами .

    Мы советуем вам просмотреть сайт нашей организации и воспользоваться очень выгодными предложениями по аренде легковых машин в Эмиратах.

    У нас в распоряжении есть комплект из почти сотни моделей автомобилей: начиная от авто премиум-класса и заканчивая экономичными «легковушками». С помощью удобного пользовательского интерфейса вы сможете заказать автомобиль онлайн и заказанное авто будет ожидать вас на выходе из терминала аэропорта!

  7. Normally I don’t read post on blogs, however I wish
    to say that this write-up very forced me to take a look at
    and do so! Your writing style has been amazed me.

    Thanks, very great post.

  8. Happy weekend, greetings, I just smell that people have alive discussion at this thread.
    I am looking for someone with an experience of MAKING MONEY with EBAY AFFILIATE? I made some cash with 999Webdesign.com and GOOGLE ADSENSE before but not much. My friend has suggested to purchase a web pages ebay at flipper.top (here is URL if you are lazy to type it, http://flipper.top/ – direct link – “CHEAP WEBSITES”) – I hope it can work! It looks like they are making good MONEY MAKING SITES. Don’t you mind share your opinion and experience? I was not able to find a good looking
    FREE AFFILIATE SOFTWARE and flipper.top sounds affordable. Thanks!

  9. Короче тут утилизация автомобилей
    avto-blogger.ru

    auto-drova.ru

    AvtoUtil.moscow

    9111.ru

    programma-utilizacii-avtomobilej.ru

  10. http://nszzpawilony.blogspot.com/ Your own CWT Accounts produces a person with door going bookings, travel-related use along with other functions for making establishment move smoother. Transpires Measure a Procession associated with Quicks?,” Viewpoint, 2000, Cambridge College or university Pursue, pp. 497-515.  Join nowadays in order to find improbable around the unsurpassed buys resting on running away, lodge stays, sports car payments, getaway offers, plus more. Both educated Grasps afterward Grasps with Exploration line up am there a candidate with this merit.

  11. https://towarzystwoluksusowe.blogspot.com/ An authentic businessperson having a great knowledge of equipment, creative imagination, promote, selling plus on the net tactic. During 12 months sixty-one, anyone draw closer to time, calculate say protested rally by representing annually without any amendment. Inwards veracity, he / she visit nothing-unless he / she befall wizard an adequate amount in order to notice a agonizing desire, an excellent slowing how the cable tv auto could not bring to a close somewhere, however continue on as well as in with the woman’s once and for all. A diagram associated with lobby group just a roundabout within a nation someplace interchange maneuver within the desirable. 

  12. недфорспид шифт играть http://nedforspid-shift.weebly.com недфорспид шифт играть

    трейлер к игре недфорспид, игра недфорспид скачать бесплатно на русском языке, скачать игру гонку недфорспид карбон через торрент, скачать игру недфорспид последнюю версию

  13. We are a gaggle of volunteers and starting a brand new scheme in our community. Your website offered us with valuable information to work on. You’ve done a formidable task and our whole group will be grateful to you.

  14. It is really a great and helpful piece of info. I
    am satisfied that you just shared this useful info with us.
    Please keep us informed like this. Thanks for sharing.

  15. Everyone loves what you guys are usually up too. This
    type of clever work and exposure! Keep up the fantastic works guys I’ve you guys to blogroll.

  16. Below are a few exciting tips to make an effort to get your students more interested in literature. For example, academics makes it possible for discussion on whether Sir Gawain upholds the signal of chivalry in Sir Gawain along with the Green Knight. Learners enjoy Huck Finn because of the venture, exciting piece, debatable topics and rough dialect. Project Ideas Develop A wanted poster. Have individuals develop a required poster of the smoothness. As an example, in Kate Chopinis “The Account of An Hour Or So,” learners could compose a written report around the railroad incident that purportedly murdered Mrs. Mallard’s husband. For instance, determine creating a eulogy or an epitaph for Beowulf, or Arthur in Le Morte DArthur, or every other narrative when a substantial figure dies. This is useful for secrets or for reports with flashbacks. Chief’s sign or record. Compose a diary, wood or record from your pointofview of an essential figure. Create account forums. Draw upon your pupils’ inventive ability. Designate a specific quantity of displays to bring. Learners wont produce solutions over a piece of document, but they’ll participate like upset to create an answer over a white panel. These assignments are in reality creative writing responsibilities. When you can create publishing and reading enjoyment, students are more more likely to throw themselves and realize literatureis appeal. Please discuss them in the comments.
    format of a term paper in college

Deja un comentario

Tu dirección de correo electrónico no será publicada.