Getting Up and Running With Linux

Linux is a family of open-source Unix-like operating systems based on the Linux kernel. In 1991 the version 0.02 was released; Version 1.0 of the Linux kernel, the core of the operating system, was released in 1994, by Linus Torvalds. Linux is typically packaged in a Linux distribution.

Some important commands to know in other to ensure your easy way about this Operating System is what is below.
In most cases, I’ll show how to use these commands. Others will just contain explanations of the commands.

Commands Regarding Files and Directories

1. ls — use to view contents of directory

2. pwd — outputs the path of the current directory

3. cd — change directory
Usage: cd <name of directory>

4. mkdir — make new directory
Usage: mkdir <name of directory>

5. mv — move files / rename files
Usage: mv <file1> <file2> = when you want to rename files
Usage: mv <file> <path for new file>

6. cp — copy files
Usage: cp <file> <path for new file>

7. rm — remove files
Usage: rm <file>

8. touch — create blank new file
Usage: touch <name of new file>

9. rmdir — delete directory that are empty
Usage: rmdir <name of directory>

10. cat — list content of file to terminal
Usage: cat <name of file>

Commands Regarding the System, Network

1. ssh — a secure encrypted connection between two hosts over and insecure network. (Read this article on SSH)

2. cal — shows calendar

3. apt — command line tool for interaction with packaging system

4. scp — a secure encrypted copy of files between two hosts over an insecure network. (More info coming up)

5. cal — shows calendar

6. apt — command line tool for interaction with packaging system
Usage: apt install <package name>

7. whereis — used to locate the binary, source, manual page files

8. useradd — used to create a new user

9. passwd — used to changing password of current user

10. whoami — print current user

11. uptime — print current time when machine starts

12. history — print used commands history

13. uname — print detailed information about your Linux system

14. ping — to check connectivity status to a server

15. chmod — to change permissions of files and directories

16. chown — to change ownership of files and directories

17. find — using find searches for files and directories on your system

18. locate — used to locate a file on your system

19. ifconfig — use to displays IP addresses and other network details

20. top — task manager in terminal

21. man — show manual of Linux commands

22. sudo — enables you to perform tasks that require administrative or root permissions

Other Important Commands

1. grep — used to searching words in specific files

2. head — view first lines of any text file

3. tail — view last lines of any text file

4. clear — clear terminal window

5. echo — move data into a file

6. less — Read text file one screen at a time

7. kill — used for killing unresponsive program

8. jobs — display all current jobs along with their IDs

9. sort — is a command line utility for sorting lines of text files

10. unzip — to extract the zipped files from a zip archive

Leave a Reply

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