In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Xiaobian to share with you what are the practical Linux Shell commands, I believe most people do not know how, so share this article for everyone's reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
1 Create pdf version for man manual
man -t manpage | ps2pdf - filename.pdf
For example, make ls command man manual pdf file
man -t ls | ps2pdf - ls.pdf
2 is a command binding shortcut key
bind -x '"\C-l":ls -l'
Press CTRL+L to list directories. You can add this command to ~/.bashrc so you don't have to repeat it every time.
3 One-click start tmux on remote host
tmux is an alternative to GNU Screen, a tool that can open multiple windows in the terminal. It can be said to be a very good remote service maintenance tool. You can directly open tmux on the remote server with the following command in the terminal.
ssh -t username@server.com tmux
If you have tmux turned on previously on the remote host, use the following command.
ssh -t username@server.com tmux att
In addition, you can combine the second command to bind the shortcut key, so that we can quickly log in and turn on tmux with one click.
4 Use the file command to view device information
file -s /dev/sd*
5 Compare the consistency of two files with md5 value
cmp file1 file2
If they are consistent, there will be no prompt. If they are inconsistent, there will be prompt information.
6 One command to make CD/DVD ISO file
dd if=/dev/cdrom of=file.iso
7 Copy entire hard disk to remote directory via ssh (with compression)
dd if=/dev/sda | gzip -c | ssh user@ip 'dd of=/mnt/backups/sda.dd'
8 Testing Network Speed Without Wasting Disk
dd if=/dev/zero bs=4096 count=1048576 |ssh user@ip 'cat > /dev/null' The above is "What are the useful Linux Shell commands?" All the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
# echo "/ dev/vdb1 / data01 ext4 defaults 0" > > / etc/fstab
© 2024 shulou.com SLNews company. All rights reserved.