You may think you are a Linux novice, but it is not. There are 374 million Internet users worldwide. They all use Linux in some way because Linux servers account for 90% of the Internet. Most modern routers run Linux or Unix, and TOP500 supercomputers also rely on Linux. If you have an Android smartphone, your operating system is built from the Linux kernel.
In other words, Linux is everywhere.
But there are differences between using Linux-based technology and using Linux itself. If you are interested in Linux, but have been using a PC or Mac desktop, you may want to know what you need to know to use the Linux command line interface (CLI), then you come to the right place.
Here are the basic Linux commands you need to know. Each one is simple and easy to remember. In other words, you don't have to be Bill Gates to understand them.
1, ls
You might think, "What is this?" No, it's not a typographical error - I really want to enter a lowercase l. Ls, or "list", is the first command you need to know to use the Linux CLI. This list command runs on a Linux terminal to display all the major directories stored under the corresponding file system. For example, this command:
Ls /applications
Displays each folder stored in the applications folder, which you will use to view files, folders, and directories.
To display all hidden files, use the command ls -a.
2, cd
This command is what you use to jump (or "change") to a directory. It guides you how to navigate from one folder to another. Assuming you are in the Downloads folder but you think of a folder named Gym Playlist, simply typing cd Gym Playlist will not work because the shell will not recognize it and will report that the folder you are looking for does not exist ( LCTT: This is because there are spaces in the directory name.) To jump to that folder, you need to include a backslash. The change command is as follows:
Cd Gym\Playlist
To return to the previous folder from the current folder, you can enter cd .. in this folder. Think of these two points as a back button.
3, mv
This command transfers files from one folder to another; mv stands for "move." You can use this simple command just like you drag a file to a folder on your PC.
For example, if I wanted to create a file called testfile to demonstrate all the basic Linux commands and I wanted to move it to my Documents folder, I would type this command:
Mv /home/sam/testfile /home/sam/Documents/
The first part of the command (mv) says that I want to move a file, the second part (home/sam/testfile) means the file I want to move, and the third part (/home/sam/Documents/) means where I want to transfer the file. .
4, shortcut keys
Well, there is more than one command, but I can't help but include them all. why? Because they save time and avoid experiencing headaches.
CTRL+K Cut text from the cursor until the end of the line
CTRL+Y paste text
CTRL+E Moves the cursor to the end of the line
CTRL+A moves the cursor to the beginning of this line
ALT+F jumps to the next space
ALT+B returns to the previous space
ALT+Backspace delete previous word
CTRL+W cut a word before the cursor
Shift+Insert pastes text into the terminal
Ctrl+D Logout
These commands can be used in many ways. For example, suppose you misspelled a word in the command line text:
Sudo apt-get intall programname
You may notice that install is misspelled, so this command does not work. But shortcuts make it easy for you to go back and fix it. If my cursor is at the end of this line, I can press ALT+B twice to move the cursor to the place marked with the ^ symbol:
Sudo apt-get^intall programname
Now, we can quickly add the letter s to fix install, which is very simple!
5, mkdir
This is the command you use to create a directory or folder in a Linux environment. For example, if you like DIY as much as I do, you can type mkdir DIY to create a directory for your DIY project.
6, at
If you want to run Linux commands at a specific time, you can add at to the statement. The syntax is at followed by the date and time you want the command to run, then the command prompt changes to at> so that you can enter the command to run at the time specified above.
E.g:
At4:08PM Sat
At> cowsay'hello'
At> CTRL+D
This will run the cowsay program at 4:08 pm on Saturday.
7, rmdir
This command allows you to delete a directory through the Linux CLI. E.g:
Rmdir testdirectory
Remember that this command does not delete directories that have files in them. This only works if you delete an empty directory.
8, rm
If you want to delete the file, the rm command is what you want. It can delete files and directories. To delete a file, type rm testfile, or delete a directory and its files, type rm -r.
9, touch
The touch command, also known as the "make file command", allows you to use the Linux CLI to create new, empty files. Much like mkdir creates a directory, touch creates a file. For example, touch testfile will create an empty file named testfile.
10, locate
This command is the command you use to find files on your Linux system. Just like searching in Windows, if you forgot to store the location of the file or its name, this is very useful.
For example, if you have a document about the blockchain use case, but you forgot the title, you can type locate -blockchain or look for "blockchain use cases" by separating words with asterisks, or an asterisk (*). E.g:
Locate -i*blockchain*use*cases*
There are many other useful Linux CLI commands, such as the pkill command. If you start to shut down but you realize that you don't want to do this, then this command is awesome. But the 10 simple and useful commands described here are the basics you need to get started with the Linux command line.
Digital signage includes digital signage hardware, digital signage solutions, information cloud publishing systems, LCD screens, touch screens and other advertising display equipment. JMSX digital signage is widely used in shopping malls, restaurants, churches, enterprises and other places.
digital signage software,digital signage solutions,digital signage board,digital signage hardware,electric signage,digital signage media player
Jumei Video(Shenzhen)Co.,Ltd , https://www.jmsxdisplay.com