Linux File Commands

Linux file operation commands, including create file command, modify file command, delete file command, view file command, etc.

vim

Vi IMproved, a programmer’s text editor

touch​

change file timestamps, can also be used to create an empty file.

tee

read from standard input and write to standard output and files

cp

copy files and directories

rm

remove files or directories

link

call the link function to create a link to a file

unlink

call the unlink function to remove the specified file

lsof

list open files

file

determine file type

pwd

return to the current directory path

ls

list directories and files under dir

cat

concatenate files and print on the standard output

tail

display the last part of a file, -n: displays the last num lines

head

display first lines of a file, -n: displays the first num lines

more

 displays text content and can be flipped down

less

displays text content, can be flipped up or down

grep

file pattern searcher

find

find the command location in order from the directory listed in the Path environment variable, and display the name of the full path