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

24 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.

Leave a Reply

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