- List files and directories
LS (list)
#ls
type ls in the terminal and enter, listing the files and directories of the current directory , but excluding hidden files and directories
#ls-A
List all files in the current directory
#ls-al
List details of all files for the current purpose
- Create a Directory
mkdir (Make directory)
#mkdir Test
Create A catalog of test in the current directory
- Show current directory
PWD (print working directory)
#pwd
Print current directory
- Switch to a different directory
CD (change directory)
#cd Directory Name
- Copying files
CP (copy)
#cp the folder to copy the files to
Copies a copy of a file to the specified directory, and if the filename is not written, the source file is named
- Moving files
MV (move)
Similar to the previous copy command, but does not produce a copy file
- deleting files
RM (remove)
#rm the file to be deleted
Remove the file, be cautious, you may be tossing the system bad
- Delete Directory
RmDir (remove directory)
Similar to deleting files
- View File Contents
Cat (CONCATENATE)
#cat the file to view
- View Help Commands
mAn (manual)
#man want to see the help command
is The result of the input man ls.
Other common operations and commands to add to the area
1.linux consists of three parts,the kernel ( kernel ), the shell and the programs ( program ).
The shell is used to connect the kernel, and the connection Shell is the most used in this machine is the terminal,the shell has many kinds, in the Kali is the default use of bash, This is also a more extensive use of a shell.
2. in the world of Linux There are only two things, one is file and processes
Everything in UNIX is either a file or a process
3. at the end of the input command, because of the variety of commands, it will inevitably error, you can press "tab" to do the automatic input, sometimes there will be no intention of the results
4.clear Command, clear the contents of the current screen. To make your eyes fresh and refreshing
5. contents of ".", "..", "~" in the directory
"." represents the current directory
".." represents the parent directory
"~" means home directory
6. The preceding prompt "#",# indicates that the current user has root privileges
7. running the current program is why add "./" followed by the program name
This design for security reasons, if the current directory is exactly known as LS program, and has executable permissions, if you do not need to add "./" will definitely execute the LS program in the current directory ,ls Commands are frequently used commands to prevent malicious programs from being executed without the administrator's knowledge
# Summary #
It's hot and hot today ...