Remove Files and Directories Using Linux CLI

Remove files and directories in LInux
3 min read

Using Linux is a bit difficult if you are an absolute beginner. In this article you gonna have a look at how to remove files and directories using rm command in Linux command-line interface.

Remove files and directories in LInux

It is quite easy to use the rm command in Linux CLI. Follow me carefully if you don’t want to face any errors or file loss.

You can use the rm command to delete a specific file or directory in Linux OS. In most Linux system, deleting a file requires admin permission. In this article I have explained about everything. Becareful when you use the command rm cause it doesn’t asks permission to delete a file. Therefore, if you delete a file it will be out of your Linux system permanantely. Linux is multi-user, therefore, it doesn’t allows you even to recover your deleted files. So, once you’ve deleted the files you are fired. If the file is deleted the Linux will use it for else purpose.


Latest:

How to Remove Files Using “rm”?

Let’s learn to use the rm command. It is very command between Linux users. Beware about all your files and directories if you don’t want to lose an important file. To delete your desired file, follow me.

  1. To delete a simple file of name “ANYNAME“.

rm ANYNAME

If it asks that “You want to delete a File?” then you just press “y” and press enter. It usually happens when your file is protected.

2. Delete multiple files using rm.

rm ANYNAME1 ANYNAME2 ANYNAME3 …like this.

3. Force delete any file without any permission.

rm -f ANYNAME

4. Use the rm command combined. This will delete all the files in the particular format, for example, .html, .txt

rm -fv *.html

Remove Directories Using rm command.

  1. Remove any folder[empty] using rm.

rm -d dirname

This will remove an empty folder easily.

2. Remove folder+all files in it.

rm -r dirname

3. Remove multiple folders+all files in them using the rm command.

rm -r dirname1 dirname2 dirname3

Conclusion:

I hope you’ve now understood about the rm command. And most importantly how you can delete a file in linux without any futher hassel. Make sure you do all the above steps very carefully or once a file is deleted you can’t recover it. If you have any problem regarding linux you can contact our team. We will provide the most quick assistance for your problem. Furthermore, if you want any request for any article, you can contact our team on Facebook Page or just leave a message on Instagram to our Admin[ID: @iamsuyash69].

If you are new to Linux you can visit our website

Best Ways to List Users in Linux OS

List Linux Users
2 min read

Each Operating System has its own environment that a user needs to understand. Linux is a very powerful OS as compared to others. In this article, we gonna learn about the Best Ways to List Linux Users”. All the methods are purely true and tested by our team.

List Linux Users

List Linux Users:

  • Usingless /etc/passwd to list users.

This command will help you to list the locally stored users in the system. After you’ve used the command it will give output as:

root:!:0:0::/:/usr/bin/ksh
daemon:!:1:1::/etc:
bin:!:2:2::/bin:
sys:!:3:3::/usr/sys: 
adm:!:4:4::/var/adm:
uucp:!:5:5::/usr/lib/uucp: 
guest:!:100:100::/home/guest:
nobody:!:4294967294:4294967294::/:
lpd:!:9:4294967294::/:
lp:*:11:11::/var/spool/lp:/bin/false 
invscout:*:200:1::/var/adm/invscout:/usr/bin/ksh
nuucp:*:6:5:uucp login user:/var/spool/uucppublic:/usr/sbin/uucp/uucico
paul:!:201:1::/home/paul:/usr/bin/ksh
jdoe:*:202:1:John Doe:/home/jdoe:/usr/bin/ksh 

The output format is as follows:

  • Username
  • Password(encrypted: you won’t be able to see)
  • UID
  • GID
  • Full Name
  • The home directory of a particular user.

 

  • Using compgen

This command helps you to list all the users without any further information. “compgen” is used with -u command. eg,

compgen -u

The output will be very simple like,

Suyash
Techeverywhere
Hero
Admin

  • List the Usernames.

I have already told you about “compgen” command. There is another way to do the same thing.
cut -d: -f1 /etc/passwd
This will too, give you simple usernames without any further instance of the users.

root
user
admin
hero
shaktiman
linuxuser3
yourname


Latest:

  • List Users using Gatent Command:

It will give you a detailed output as I’ve shown in “less /etc/passwd“. Example,

root:!:0:0::/:/usr/bin/ksh
daemon:!:1:1::/etc:
bin:!:2:2::/bin:
sys:!:3:3::/usr/sys: 
adm:!:4:4::/var/adm:
uucp:!:5:5::/usr/lib/uucp: 
guest:!:100:100::/home/guest:
nobody:!:4294967294:4294967294::/:
lpd:!:9:4294967294::/:
lp:*:11:11::/var/spool/lp:/bin/false 
invscout:*:200:1::/var/adm/invscout:/usr/bin/ksh
nuucp:*:6:5:uucp login user:/var/spool/uucppublic:/usr/sbin/uucp/uucico
paul:!:201:1::/home/paul:/usr/bin/ksh
jdoe:*:202:1:John Doe:/home/jdoe:/usr/bin/ksh 

How to check existing users?

It is very simple to identify existing users. Just use the following command,

johndoe:x:1000:1000:John Doe,,,:/home/johndoe:/bin/bash

It will give you the output with all the details of the users if it exists.

Follow me on Instagram to support my work:

How to Rename Local Git Branch?

rename branch git

2 min readSo, you’ve created a git branch but renamed it incorrectly? This article is for you! You’ve got good luck as Git allows to rename the Git Branch easily just by using the -m code. Let’s learn how to do it?

rename branch git

What is Branch Git?

branch in Git is simply a lightweight movable pointer to one of these commits.

How to Rename Branch Git?

If you are following my steps carefully then don’t worry you will be able to rename very easily. It just consists of few steps. Follow me:

    1. Switch to the Git that you want name to be changed.

    git checkout  <OLD-NAME>

  1.  Rename Branch Git. By using the following command.

git branch -m  <NEW-NAME>

3.  Delete the Old-name remote branch.

git push origin --delete <OLD-NAME>

4.  Insert <NEW-NAME> and reset the up-stream branch.

git push origin -u <NEW-NAME>

Now you’ve successfully renamed the local and remote git branch.


Latest:


Wind-UP

I hope you’ve understood to rename git branch. If you have any queries or suggestions related to this article feel free to contact our team. Contact Us page is for you. But while you are doing anything make sure you follow everything in this article carefully. Thanks for landing on this article. Have a nice day…Ahead.

Install Google Chrome in Linux System – 2019

Install Chrome in Linux

2 min readGoogle Chrome is one of the best choices when we talk about browsers. If you are using a Linux distro it is little difficult to “Install Chrome in Linux” but if you carefully follow me you will face no issues while installing Chrome.

Install Chrome in Linux

Precations: Just by typing sudo you’ll get superuser access or admin access. Make sure you do it cause without it you can’t do anything or proceed further.

Install Chrome in Linux:

  1. Download Google Chrome: First you’ll need to download google chrome file to further install it in your system. For that, you can just paste this code in terminal or just go to the official website of Google and download it from there.

Chrome Official

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

2. After you finish downloading. You can further proceed. Ubuntu needs superuser access for that as I’ve told you just type sudo. This will allow you sudo privileges.

sudo dpkg -i google-chrome-stable_current_amd64.deb

3. Now you’ve successfully installed google chrome in Linux system. In case you are getting a no-sandbox error which most users face. Then follow these steps to furthermore solve that issue.

Solve NO-SandBox Error!!!

    • Navigate to “places” from the top bar.Install Chrome in Linux
    • Go to “Computer
    • Now go to “Usr” Folder.
    • Then go to the “Share” folder.
    • Press Ctrl + F key
  • Search for “chrome
  • You’ll find a chrome Icon appearing.
  • Then open properties of that.
  • Then in command section at last paste --no-sandbox
  • Go to the permissions in the same properties.
  • Then tick on “Allow executing the file as a program

Update Google Chrome in Linux:

For updating google chrome. It is a bit complicated, but don’t worry, I am here to help you.

  • First, you’ll need to edit your linux’s repository file. Just paste the below code in your terminal.

cat /etc/apt/sources.list.d/google-chrome.list

  • After you’ve done it. Cheers, everything is done congo. Happy using Chrome.

### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main

Closure

I hope you have now understood to “Install Chrome in Linux”. If you did face any issue regarding this article. Please, feel free to contact me via the Contact Us page of our website. Comment down below your opinion about this article.

Cheers,

Suyash Tiwari

Best Text Editors for Ubuntu – Updated 2019

Best Text editors for ubuntu

4 min readYou might be searching for the best text editor that you can use in your Ubuntu system. Well, here I will tell you the “Best Text Editors for Ubuntu” that you’ll probably gonna like. Let’s begin a great journey…

Best Text editors for ubuntu

So, if you going or thinking to develop an application. Then, this article is a great choice, sir. I will tell you about all the editors that I’ve used personally and liked. I am also gonna link the official website from where you can redirect and download these editors officially without any issue of risk.

Best Text Editors for Ubuntu

  1. Atom.

Atom - Best text editors for ubuntu

Atom is one of the best text editors for ubuntu out there. Even I personally like it. Atom is officially free and open-source developed and managed by Github. It has a completely customizable UI that everyone likes and praises.

It supports C, C++, C#, CoffeeScript, HTML, JavaScript, PHP, CSS, Python, Perl and many other languages. Furthermore, it is also called as the completely hackable text editor.

2. VIM

VIM - Best text editors for ubuntu

VIM is an advanced text editor for ubuntu with IDE-like features. It is a very simple text editor but a beginner will find it really difficult to use it. Still, it is one of the most powerful text editors out there in the market for ubuntu users.

3. Sublime Text

Sublime Text - Best text editors for ubuntu.

Sublime Text is a source code editor codded in C++, Python with PythonAPI. If you are a simple kind of developer who doesn’t like to mess with complex things than this one is for you. It consists of a lightweight UI. Its feature reaches IDE has many basic features like auto-completion,  etc. and many more advanced features like Minimap, Keyboard Shortcuts, Command Pallete, Split Editing, etc.

4.Geany

Geany - Best Text Editors for ubuntu

Geany is also a light and easy to use text editor designed for ubuntu. It is also mentioned in all the repositories of all Linux distros. It is ideal for programming especially

5. Eclipse

Eclipse - Best Text Editors for ubuntuIt is an open-source editor designed for java developers. It is very advanced and modern kind of IDE available in the market which is written in JAVA. Eclipse helps you in JAVA programming Furthermore, if you install external plugins you can code in other languages as well. It comes with a cool IDE which will comfort your eyes.

6. Brackets

Brackets - Best Text Editors for ubuntu

Who doesn’t know Adobe? Brackets is developed by Adobe. It is fully open-source with very impressive UI and IDE. If we want, we can install external plugins to get more amazing features. It provides developers with amazing features which makes text editing very easy.


Latest:


7. BlueFish Editor

BlueFish - Best Text Editors for ubuntu

Image is cute right? The BlueFish text editor is developed by BlueFish team. It supports c++, Html, CSS, PHP, C, SQL, JAVA, Python, etc. Furthermore, this is a very simple and light text editor. If you want to use it you can get it from their official website.

8.Gedit

Gedit - Best Text Editors for ubuntu

Gedit is an IDE which comes preinstalled as the default code editor of GNOME. This is created with simplicity in mind. Gedit offers you customizable of syntax highlighting for several programming languages such as C, C++, HTML, JavaScript, XML, Python, Perl, etc.

9.Codelite

CodeLite - Best Text Editors for ubuntu

CodeLite is a free and completely open-source text editor. You can program in C, C++, PHP, and JavaScript. You can even use it on Mac or windows rather than Linux.

10. Code::Blocks

Code::Blocks - Best Text Editors for ubuntu

For its consistent UI, it has become one of the most renowned C++ code editors for all the major platform. You can install many plugins that are too developed by Code::Blocks only which makes it really popular among young developers.

Code Blocks

If you’ve enjoyed reading this article make sure to comment down below and tell me about your favorite text editor that you would use.

How does Grubhub works? Complete Business Model!

How GrubHub works?

2 min read“GrubHub” is one of the best service available in the market. It is a startup that caters to online food order and delivery needs of the customers in the most interesting way possible. Customers are loving their services all around. How do Grubhub works? Complete Business Model

How GrubHub works?

There are 2 ways by which GrubHub brings amazing food:

  • Order.
  • PickUp.

Order: You can order different food from GrubHub which it delivers from the specific associated store.

PickUp: Order different foods from different eateries. You can go and get it from them.

One of the best thing about GrubHub is that. They provide 24*7 assistance for their customers. Grubhub is partnered with over 85K restaurants in the United States.

Business Model

GrubHub works on 4 steps of the dynamic model. They are mentioned below:

  • Search: Customers can search for their favorite restaurant and order from them.
  • Order: After choosing your favorite restaurant you can proceed to online payment.
  • Processing: After you’ve finished ordering your food. The restaurant gets the notification to pack and process the food that you’ve ordered.
  • Delivery: Delivery boy will pick up your food from restaurants and deliver it to you.

GrubHub’s tactics and business model turned up to be very successful. Furthermore, customers are quite happy using GrubHub’s service.

GrubHub Features:

How does Grubhub earn money?

You might be thinking that if Grubhub works so well then. how does it earn money? So let’s discuss it.

  • Commission: 

The value of the commission always depends upon the value of the product that a user is buying. Generally, it ranges from 4% to 14% per order.

  • Sponsorship:

GrubHub and even more platforms like this are really great platform to increase customers. The company has predecided plans on every order from the specific restaurant.

Should You Register on Grubhub?

Grubhub provides users with amazing offers and facilities. Hence, users are increasing on this on a daily basis. It means that if you register your restaurant on Grubhub you are definitely gonna benefited. But it is impossible for me to make a full recommendation on it. As it totally depends upon your restaurant.

I am not promoting GrubHub in my article. I am just trying to explain to you about it in detail. Rest depends upon you.

Bleah – The BLE scanner for Smart Devices.

Bleah
3 min read

You might be searching for a scanner for smart devices. Or you might be looking for how to install “Bleah” in your Linux system. Here, you goona discover everything about it. This tool is coded by Simone ‘evilsocket’ Margaritelli.

Bleah

Disclaimer: Techy team don’t have any responsibility if you attack someone else network without prior permission. Everything you do after it is your own risk. Just a general reminder.

How to install Bleah?

Installing bleah is quite easy and even using this tool is very easy. Just follow the below tutorial.

  • Install [bluepy] (https://github.com/IanHarvey/bluepy) from:
git clone https://github.com/IanHarvey/bluepy.git
cd bluepy
python setup.py build
sudo python setup.py install
  • Let’s install our tool aka Bleah:
git clone https://github.com/evilsocket/bleah.git
cd bleah
python setup.py build
sudo python setup.py install

Installing is done. Now you can successfully use the tool for your work. Don’t know how to use??? This article contains everything about it. Let’s look at how to use this tool?!

How to use the Tool?

usage: bleah [-h] [-i HCI] [-t TIMEOUT] [-s SENSITIVITY] [-b MAC] [-f] [-e] [-u UUID] [-d DATA] [-r DATAFILE]

optional arguments:
  -h, --help            show this help message and exit
  -i HCI, --hci HCI     HCI device index.
  -t TIMEOUT, --timeout TIMEOUT
                        Scan delay, 0 for continuous scanning.
  -s SENSITIVITY, --sensitivity SENSITIVITY
                        dBm threshold.
  -b MAC, --mac MAC     Filter by device address.
  -f, --force           Try to connect even if the device doesn't allow to.
  -e, --enumerate       Connect to available devices and perform services
                        enumeration.
  -u UUID, --uuid UUID  Write data to this characteristic UUID (requires --mac
                        and --data).
  -d DATA, --data DATA  Data to be written.
  -r DATAFILE, --datafile DATAFILE
                        Read data to be written from this file.

Let’s look at some examples to make your understanding better of this tool.


Latest:


Connect to a particular device and enumerate everything:

sudo bleah -b "aa:bb:cc:dd:ee:ff" -e

Keep scanning for BTLE devices:

sudo bleah -t0

So, hope you’ve understood everything about the tool. Happy hacking!!! If you’ve enjoyed reading this article make sure you leave a comment. Any problems? Tell me on my Instagram I will reply to you over there.

Download Tool – Github

Conclusion:

I hope you have understood how to install bleah in your linux system. Do not scan any device that you don’t own as it is illegal by law.

If you’ve followed me carefully, you will face no problems and your Bleah will be installed without any problem. If you do face any problem. Please let our techeverywhere team know about it. So, that we can further solve that issue. If you have any suggestions or questions regarding our article, you can contact us via contact us page on our website. Sharing this article is highly appreatiated.

Technical Sagar Hacking Course Full Review!!!

Technical Sagar course

4 min readOkahh, So you want to learn hacking right??? You might be thinking to buy Technical Sagar hacking course who is one of the most popular creators in India on YouTube. I have also bought his course and here I will tell you about the course and is it good for you?

Technical Sagar course

Who is Technical Sagar?

Let’s start with technical Sagar introduction. Basically, He is an Indian YouTuber with about 2M subs and amazing following. He is a self-taught an ethical hacker from India. He is using computers from the very beginning of his life. Also, he worked with many MNCs about Cyber Security.

Technical Sagar Website

Technical Sagar course:

Abhishek Sagar has introduced some of the amazing hacking course. That will help you to start ethical hacking. People often have some of the biggest misconceptions about sagar’s course. But things are definitely not like that. His teaching skills are just amazing even the owner of this website, yes me too has learned many things from him. So, without wasting any further time let’s start talking about his course.

He has introduced three courses:

  • Hackstars.
  • Tech Master.
  • Quick Hack.

Furthermore, We will be talking about every course one by one in detail. Cause, I don’t want you to waste money on something that you don’t like or probably not gonna like.

Hackstars:

Technical Sagar Hackstars

Hackstars is the latest course introduced by Sagar Bhai. As I’ve bought all the three courses. I know everything about these courses. But I will not tell you everything such as video contents cause it is only for the people who will buy this course. Sorry about this but tech everywhere never provokes piracy of copyrighted contents.

This course includes:

  • Introduction.
  • Telegram Hacker or criminal
  • Wifi Jammer
  • Hacking WordPress website
  • What can be hacked
  • Shell in Hacking
  • Cloud Computing in hacking

Let’s talk about all these topics briefly:

  • Introduction: It is just an intro to the hackstars course. Sagar bhai talks about what you are gonna learn in this course.
  • Telegram: This isn’t a practical video. In this video, Bhai has explained about Telegram and how it is used for black hat practices and piracy of copyrighted content.
  • Wifi Jammer: Wifi jammer is one of the best videos in this course. This contains an explanation video and a short practical video in which Bhai jams his own wifi.
  • Hacking WordPress Websites: This contains practical video which involves discovering old/outdated WordPress and hack it. This is too a basic tutorial for complete beginners.
  • What Can Be Hacked: Even I liked and learned from this video. Here, he explains which kind of systems can be attacked and hacked by black hat hackers.
  • Cloud Computing in Hacking: Here, Sir tries to explain about computing in Hacking.

Conclusion: This is the best course by sagar bhai. If you are learning to hack. This is definitely a good choice at the price of 300 rupees.

Tech Master:

Technical Sagar Tech Master

Tech Master course is too introduced by technical sagar. This is the second part of Quick hack ethical hacking course. But according to me, this is not a good and value for money course. For you, it may be different.

Let’s talk about the contents:

  • Introduction
  • Deadly Mailer
  • Doxing
  • Find Admin Panel of website
  • Catch Newbie hacker
  • Vulnerability in WP.
  • Hacking Servers with a brute force attack
  • Man in the middle attack
  • CEWL
  • Steganography Practical

Let’s talk about these topics briefly:

  • Introduction: He explains what you are gonna learn in this course.
  • Deadly Mailer: Here, he shows fake mailer and how a hacker can use it for social engineering.
  • Doxing: This practical video is to explain how someone can gather information just by using an email address of the victim.
  • Find Admin Panel of Website: Here, Bhai shows you how you can find admin panel of a website.
  • Catch Newbie Hacker: This is a practical video that shows how you can catch a newbie black hat hacker who is hacking without hiding their IP.
  • Vulnerability in WordPress: In this video, you’ll learn how to use WPscan tool to discover outdated WordPress version and plugins.
  • MITM: This is a practical video of the man in the middle attack.
  • Steganography: This is the best video of this course. Even I’ve liked it.

Conclusion: This is a course for an absolute beginner in ethical hacking who don’t know anything.

Quick Hack:

Quick Hack course

This course is too for absolute beginners.

Conclusion: According to me you don’t need to buy a tech master course. If you are an absolute beginner then just buy quick hack. If you are a little experienced you can buy hackstars it is a worthy product. So, you might be thinking about why I haven’t written about Quick hack contents! Actually, I have some limits. Still, Quick Hack includes basic video practical such as how to create a bootable pen drive of Kali Linux, etc.

Watch my Video: