Working with terminal

We didn’t always have a nice-looking interface on our screen

Photo by Museums Victoria on Unsplash

In this article, we will learn how to work with a terminal on your laptop/pc. Note, this is a beginner's tutorial.

We didn’t always have a nice-looking interface on our screen where we could move the mouse around, click things to open or drag things to different locations, and so on. Early days of computers we used to send specific commands to our computer through a terminal and the computer would take this command read it and execute it accordingly.

In the IT world, we still use a terminal daily for different purposes. To begin, you will need to know and able to use the basic commands:

  1. Navigation commands.
  2. Create and delete commands.

Navigation commands

All commands will be Linux-based. macOS users can use their regular terminal for windows users I suggest installing the GitBush terminal(install git GitBush terminal is part of it).

  • pwd will display the current location.
  • ls will list all files in the current location.
  • cd <path> will navigate to a specified path(used without <>).
  • cd .. will navigate one layer back in the file system hierarchy.

Create and delete commands

  • mkdir <directoryName>will create a directory in the current location.
  • touch <fileName> will create a file in the current location.
  • rm -rf <filePath> will remove a file or a folder by a specified path. Note, it will not ask for confirmation and it will delete permanently. Be extremely careful while practicing.
This article is part of the series of articles to learn Java programming language from Tech Lead Academy:1. Introduction to programming 
2. OS, File, and File System
3. Working with terminal
4. Welcome to Java Programming Language
5. Variables and Primitives in Java
6. Methods with Java
7. Java Math Operators and special operators
8. Conditional branching in Java
9. Switch statement in Java
10. Ternary operator in Java
11. Enum in Java
12. String class and its methods in Java
13. Loops in Java
14. Access modifiers in Java
15. Static keyword in Java
16. The final keyword in Java
17. Class and Object in Java
18. Object Oriented Programming in Java
19. OOP: Encapsulation in Java
20. Inheritance in Java
21. Abstraction in Java
22. Polymorphism in Java
23. Overriding vs Overloading in Java
24. OOP Design Principles in Java
25. Array in Java
26. Data Structures with Java
27. Collection framework in Java
28. ArrayList in Java
29. Set in Java
30. Map in Java
31. LocalDate in Java
32. Exception in Java
33. IO in Java
34. Design Patterns
35. Generics in Java
36. Multithreading in java
37. JUnit
38. Big O Notation for coding interviews
39. Top 17 Java coding interview questions for SDET

Software Developer, Java Instructor https://www.techleadacademy.io/