Linux essentials

File Management & Manipulation

ls -lR <directory>
# shows directories recursively

File & Directory Permissions

chmod u+x filename
#give an owner of file execute permission

Grep & piping

grep -i "search character" target file
# search character & ignore case sensitive
ip addr |grep inet
#get ip address info

Finding Files With Locate & Find

locate --all "*.conf" | grep resolv
#find all "resolv" file with conf extension.
locate --all -c "target character" 
#count how many patterns match
-i means ignore case sensitive
sudo find /etc -type f -name "*.conf" -size 1M |grep apache
# show apache conf file more than 1M

Enumerating Distribution & Kernel

cat /etc/os-release
#get info about OS version

Disk Usage

du -sh * 
#disk usage & summarize info for human redable way
df -h |grep sd
#show the disk usage 

File Compression & Archiving With tar

tar -cf <outout name> <target>
sudo tar -xvf <target file> -C <output location>
# decompress tar file -C output location

Users And Groups & Permissions With Visudo

usermod -aG <group> <user>
add <user> to <group>
useradd -m<home directory> -c "comment" -s shell username

Related Post

61 Replies to “Linux essentials”

  1. Needed to draft you one bit of word to give many thanks yet again for your personal pleasant methods you have shared in this article. This is so pretty open-handed of you in giving without restraint just what many individuals could have marketed for an e-book to end up making some profit on their own, certainly considering the fact that you might well have tried it if you ever decided. The pointers likewise worked to become good way to comprehend some people have the same passion just as mine to realize whole lot more with respect to this issue. Certainly there are a lot more fun instances up front for many who discover your site.

  2. The road seemed to stretch on endlessly before us, but Alexis assured me that our journey was near an end. We’d turn before long into thick woods and travel through narrow, winding roads until we reached her family’s cabin. I had no choice but to trust her as GPS had given out nearly 20 minutes ago.

    “There’s good wifi and okay reception at the cabin,” she’d told me, “but you can’t get there unless you know the way.”
    https://notepin.co/shared/ovzptve
    So here I was, driving alone in the middle of god knows where with a girl who was my student just a couple of weeks ago. Her and her four best friends had been together from first grade all the way through high school and now they had graduated with very different futures ahead of them. They had decided to kick off “the best summer ever” with a week long stay at Alexis’s family cabin. Alexis and I were heading up before everyone else, the four other girls and four guys.

  3. The road seemed to stretch on endlessly before us, but Alexis assured me that our journey was near an end. We’d turn before long into thick woods and travel through narrow, winding roads until we reached her family’s cabin. I had no choice but to trust her as GPS had given out nearly 20 minutes ago.

    “There’s good wifi and okay reception at the cabin,” she’d told me, “but you can’t get there unless you know the way.”
    https://telegra.ph/Coach-and-Divorcee-Pt-03-10-18
    So here I was, driving alone in the middle of god knows where with a girl who was my student just a couple of weeks ago. Her and her four best friends had been together from first grade all the way through high school and now they had graduated with very different futures ahead of them. They had decided to kick off “the best summer ever” with a week long stay at Alexis’s family cabin. Alexis and I were heading up before everyone else, the four other girls and four guys.

  4. No, its because they realised that there was money to be produced from the flourishing Pakistani casino market. There is absolutely no casino at Pakistan yet. Its totally legal to own real estate in casinos but to not run more than four cards at one time at a live casino and also to just have 2 land cards in one hand in an online poker game. However, how could discover a casino when there wasn’t any Pakistani cities with sufficient people to support you? That is where I come in. How do you find a casino at a nation without a single casino on its doorstep?
    https://shootercasino.com/pharaoh-casino/ – 우리카지노
    The government of Pakistan has banned all online casinos in the nation. Why is this so? Is it because they don’t enjoy their guests spending cash in casinos? Could it be because the government is worried about organised crime running rampant in the country and the risk that online gambling can attract?
    I’ve been operating in the slot and casino business in the UK for the past ten years and I’ve played many offline and online casino games. My job as a consultant has provided me some insight into how to use the Betting Exchange to generate income and I can tell you that its quite easy to earn money working with the market. You can use your charge card to deposit into a”blind” or even non-player accounts and play against the casino live gamers, who’ll have placed their bets prior to you entering the area. Playing on a live casino using real individuals additionally gives you the opportunity to use a high roller bonus and the chance to win huge jackpots that you wouldn’t be able to attain in your home country. Though casinos use different vocabulary to call what is essentially the exact identical thing, I will use exactly the same terms to explain what you are doing when playing in an online casino.

  5. The government of Pakistan has banned all online casinos from the nation. Why is this so? Can it be because they do not enjoy their guests spending cash in casinos? Is it because the government is worried about organised crime running rampant in the country and the danger that online gaming may bring?

    No, its because they realised that there was money to be produced from the booming Pakistani casino market. There is absolutely no casino at Pakistan yet. Its totally legal to own real estate in casinos but not to operate more than four cards at a time in a live casino also also to just have 2 land cards in a hand in an online poker game. However, how could locate a casino if there wasn’t any Pakistani cities with sufficient population to support you? That is where I come in. How can you find a casino in a country without a single casino on its doorstep?

    https://shootercasino.com/first-casino/ – 퍼스트카지노
    I’ve been operating in the casino and slot industry in the united kingdom for the past ten decades and I have played many online and offline casino games. My occupation as a consultant has given me some insight into how to use the Betting Exchange to generate income and I will tell you that its very easy to earn money using the exchange. It is possible to use your credit card to deposit into a”blind” or even non-player accounts and play against the casino’s live gamers, who will have placed their bets prior to you entering the room. Playing on a live casino having actual individuals also affords you the opportunity to utilize a high roller bonus and the chance to win massive jackpots that you would not have the ability to reach in your home country. Though casinos use different terminology to predict what is essentially the same thing, I will use the same terms to explain what you are doing when playing with an internet casino.

  6. Chennai, on the Bay of Bengal in eastern India, is the capital of the state of Tamil Nadu. The city is home to Fort St. George, built in 1644 and now a museum showcasing the city’s roots as a British military garrison and East India Company trading outpost, when it was called Madras. Religious sites include Kapaleeshwarar Temple, adorned with carved and painted gods, and St. Mary’s, a 17th-century Anglican church.

    http://dkarimun.blogspot.com/2009/10/memperbaiki-file-mdb-ms-access-yang.html – Chennai

  7. Real good information can be found on weblog. “It is fast approaching the point where I don’t want to elect anyone stupid enough to want the job.” by Erma Bombeck.

  8. Wow that was unusual. I just wrote an very long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyways, just wanted to say superb blog!

  9. Hiya, I’m really glad I have found this information. Nowadays bloggers publish just about gossips and web and this is really annoying. A good blog with exciting content, this is what I need. Thanks for keeping this web-site, I’ll be visiting it. Do you do newsletters? Cant find it.

  10. Новости:
    Гонка процентных ставок на депозиты В 2020 году развернутая банками гонка процентных ставок достигла апогея. Депозитное ралли началось еще в 2019-м, когда из-за проблем с ипотекой в США для российских банков закрылись каналы дешевой зарубежной финансовой подпитки. Основным ресурсным источником стали деньги населения. И когда кризис грянул в самой России, начались ожесточенные бои за вкладчиков. Снарядов, то бишь процентов, банки не жалели и к лету 2020 года уже встречались рублевые ставки в 20-21% годовых. Высокой доходностью завлекали вкладчиков отнюдь не только ее обычные поставщики – мелкие банки. Даже Сбербанк, всегда славившийся своей скупостью, согласился платить клиентам по 14, 5%. Скорее всего, ставки взлетели бы еще выше, если бы на авансцену не вышел Центробанк. Снижавший ставку рефинансирования регулятор, видя, что банки не спешат следовать его примеру, взял в руки административную дубинку. Глава ЦБ РФ Сергей Игнатьев пообещал применять санкции к банкам, которые необоснованно задирают депозитные расценки. Борьба ЦБ с высокими ставками совпала со стабилизацией экономической ситуации в стране и мире. Еще в начале 2020 года банкиры в один голос твердили о второй волне кризиса и о необходимости финансовой подушки безопасности (для чего, собственно, и стимулировали вкладчиков ставками). К осени эти опасения развеялись. Ставки по рублевым вкладам поползли вниз – к концу года в крупных банках они упали примерно на 3%. Однако, люди всегда будут вкладывать деньги в банки. Срочные депозиты Москоммерцбанка дают уверенность в завтрашнем дне и стабильный процент дохода. Также существуют дополнительные опции, такие как «пополняемый вклад», которые созданы для вашего удобства. Валютные тарифы начали опускаться еще раньше. Привлекать доллары и евро стало бессмысленно: кредитование было фактически заморожено, а те заемщики, кому банки готовы были одолжить деньги, опасались взваливать на себя валютные долги. Чтобы отбить желание открывать депозиты в иностранных дензнаках, многие банки опустили расценки, по сути, до заградительного уровня. Например, в Сбербанке максимальная ставка по долларам и евро – 4, 75% годовых, и для такой невзрачной доходности придется разместить не менее 3 млн долларов и евро, да еще и на 2 года.

    Искали кредиту 30000 рублей срочно? Тебе на сайт и попробуй взять textilfabrika.ru и получи микромикрокредит до 50000 рублей 100% процентов без проверки ркедитной истории без отказа в городе Пермь.

    Срочно понадобились наличные?
    Hаличные сразу
    Проверок КИ нет. 95% одобрений.

    Новости:
    Доля проблемных банковских кредитов к концу 2009 года достигнет 20%. Об этом говорится в аналитическом отчете международного рейтингового агентства Moody’s Investors Service….

  11. I do enjoy the manner in which you have framed this specific difficulty plus it does indeed offer us a lot of fodder for thought. Nonetheless, because of everything that I have personally seen, I only hope as the actual feedback stack on that individuals remain on issue and don’t embark upon a soap box regarding the news of the day. Anyway, thank you for this exceptional point and while I do not necessarily go along with this in totality, I value the standpoint.

  12. Youre so cool! I dont suppose Ive learn something like this before. So good to seek out anyone with some authentic thoughts on this subject. realy thank you for beginning this up. this website is one thing that’s wanted on the internet, somebody with a bit of originality. helpful job for bringing something new to the web!

  13. Hi my loved one! I want to say that this post is awesome, nice written and include almost all vital infos. I’d like to peer extra posts like this .

  14. Does anyone know what happened to Dimepiece LA celebrity streetwear brand? I cannot proceed to the checkout on Dimepiecela site. I’ve read in Vanity Fair that the brand was acquired by a UK hedge fund in excess of $50 million. I’ve just bought the Dimepiece 90’s Sport Utility Duffle from Ebay and totally love it xox

  15. It’s nearly impossible to find knowledgeable people
    on this subject, but you seem like you know what you’re
    talking about! Thanks

  16. We’re a group of volunteers and opening a new scheme in our community. Your web site provided us with valuable info to work on. You have done a formidable job and our entire community will be grateful to you.

Leave a Reply

Your email address will not be published. Required fields are marked *