We didn’t always have a nice-looking interface on our screen
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:
- Navigation commands.
- Create and delete 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).
pwdwill display the current location.
lswill 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 wiht Java
7. Conditional branching, comparision and logical operators
8. Switch statemet and ternary operator
10. String and its methods in Java
11. Loops in Java
12. Class, Object and constructor in Java
13. Object Oriented Programming in Java
14. Encapsulation in Java
15. Inheritance in Java
16. Abstraction in Java
17. Polymorphism in Java
18. Overriding vs Overloading in Java
19. OOP Design Principles in Java
20. Array in Java
21. Data Structures with Java
22. Collection framework in Java
23. ArrayList in Java
24. Set in Java
25. Map in Java
26. LocalDate in Java
27. Exception in Java
28. IO in Java
29. Design Patterns