Linux Command Learning
Cal: Calendar date: date bc: calculator (scale = number, which is the number of decimal places) echo $ LANG (language) $ PATH (environment variable )...... Sync: write data synchronously to the hard disk shutdown: The usual shutdown command reboot, halt, poweroff: restart, shutdown-t sec:-t followed by the number of seconds, that is to say, "Shut down in a few seconds" means-k: don't really shut down, just send a warning message! -R: After the system's friends are stopped, restart-h: After the system's friends are stopped, immediately shut down. (Commonly used)-n: Shut down directly using the shutdown function without the init program.-f: After the shutdown is enabled, force the fsck disk check to be skipped.-F: after the system re-starts the shutdown command, force the fsck disk to check-c: cancel the shutdown command that is already in the fsck. Chgrp: Change the group to which the archive belongs chown: Change the archive owner chmod: Change the archive permission, feature cd of SUID, SGID, SBIT, etc: Change directory pwd: display the current directory mkdir: create a new directory rmdir: delete an empty directory lscp: Copy rm: delete mv: Move, rename basename: Get file name dirname: get the directory name cat. display the file content starting from the first line. tac is displayed from the last line. We can see that tac is a cat program written backwards! When nl displays the limit, the line number is output! The more page and PAGE show the file content less is not more similar, but it is better than more! The head operator looks at the first few lines of the tail operator and looks at the last few lines of the od to read the file content in the binary notation! Touch: Modify the file time or create a new file chattr: sets the system hidden attribute. lsattr can only take effect on the Ext2/Ext3 file system. view the system hidden attribute umask: file preset permission chattr: configuration file hidden attribute (+ I parameter) file: Observe the file type which/type: Search for the script file name which: Search for the environment variable, type: Search for system built-in and commands. Search for file names: find (not commonly used, slow, expensive hard disk), whereis, locate (search by database, fast, no need to find hard disk) updatedb: update database