- xrandr: view supported resolutions
- xrandr -s xxxxx: set resolution
- The header file uses <> to indicate that the header file is found in the /usr/include or /usr/local/include directory by default, and "" means to search in the current directory first, and if not found, go to the above directory to find it.
- ./a.out 10 >>test.ret.txt & write a test file, enter the number of runs 10, print the result and append it to test.ret.txt, & means running in the background, and return the pid number
- grep "struct sockaddr_in{" * -nir means to find the required content in the current path, n means to print the line number, i means case insensitive, r means recursive
- The .sh file is equivalent to an executable, command-line script file.
- Find a specific file, use find and grep together, find|grep XXX approximate path -nir
- file xxx: view the properties of the file
- -I : specify the header file directory
- -L: Specify the library file directory
- uname -r: View system version
- du View file size
- md5sum: View the value of md5 and compare to ensure that the file is not damaged during copying
- df -T: View file system (Raspberry Pi)
- sudo mknod +name +major device number+minor device number: Manually generate devices
- tar xvf : decompress the .tar file
- chdir; change the current main program directory, system() changes the shell script directory, chdir should use an absolute path
- pgrep + XXX: match and print the specific pid number
Linux easy (forgotten) shortcut command summary
Guess you like
Origin blog.csdn.net/weixin_48321071/article/details/124807859
Recommended
Ranking