In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
rz, sz is Linux/Unix and Windows ZModem file transfer command line tool
Advantages: It is more convenient than ftp command, and the server does not have to open FTP service.
sz: Send selected files to local machine
rz: Running this command will pop up a file selection window to upload files from the local selection to the Linux server
Linux confirms that make and gcc are installed
solaris confirms that make, cc are installed
Otherwise, an error will be reported when compiling and installing
1. Download rzz-3.48.tar.gz
wget http://freeware.sgi.com/source/rzsz/rzsz-3.48.tar.gz
2. Decompress tar zxf rzsz-3.48.tar.gz and generate scr directory after decompression.
Install cd src, which is different from regular GNU software-no configure and make install. First execute the command make, which will give you the following prompt:
Please study the #ifdef's in crctab.c, rbsb.c, rz.c and sz.c,
make any necessary hacks for oddball or merged SYSV/BSD systems,
then type 'make SYSTEM' where SYSTEM is one of:
posix POSIX compliant systems
aix AIX systems
next NeXtstep v3.x (POSIX)
odt SCO Open Desktop
everest SCO Open Desktop (elf, strict)
sysvr4 SYSTEM 5.4 Unix
sysvr3 SYSTEM 5.3 Unix with mkdir(2), COHERENT 4.2
sysv SYSTEM 3/5 Unix
sysiii SYS III/V Older Unix or Xenix compilers
xenix Xenix
x386 386 Xenix
bsd Berkeley 4.x BSD, Ultrix, V7
tandy Tandy 6000 Xenix
dnix DIAB Dnix 5.2
dnix5r3 DIAB Dnix 5.3
amiga 3000UX running SVR4
POSIX POSIX compliant systems (SCO Open Desktop, strict)
undos Make the undos, todos, etc. program.
doc Format the man pages with nroff
4, according to their own system to choose the location parameters of make, under normal circumstances, choose posix or linux can be. Execute the command to make posix
lnxxt@suse10-1085:~/rzsz/src> make posix
cc -O -DPOSIX -DMD=2 rz.c -o rz
size rz
text data bss dec hex filename
25726 648 10404 36778 8faa rz
rm -f rb rx rc
ln rz rb
ln rz rx
ln rz rc
cc -O -DPOSIX sz.c -o sz
size sz
text data bss dec hex filename
30899 708 43084 74691 123c3 sz
rm -f sb sx zcommand zcommandi
ln sz sb
ln sz sx
ln sz zcommand
ln sz zcommandi
5. Add instructions to copy the relevant files to the directory/usr/bin. Here you only need to copy two files rz and sz,
The command is cp rz sz /usr/bin
6. Other issues:
a. Remove the "Unregistered COPY" prompt
**** UNREGISTERED COPY *****
Please read the License Agreement in rz.doc
Solution:
Modify the fourth line of Makefile OFLAG= -O to OFLAG= -O -DREGISTERED
b. If you want to migrate to ARM, you need to modify Makefile as follows:
#vi Makefile
CC=arm-linux-gcc
save and exit
#make posix
c. If the user has permission errors, please refer to the following modifications.
[root@leader bin]# su - test
[test@leader ~]$ rz -y
/dev/pts/0: Permission denied
[root@leader bin]# cd /dev/pts
[root@leader pts]# ll
Total 0
crw--w---- 1 root tty 136, 0 Oct 5 10:17 0
crw--w---- 1 root tty 136, 1 Oct 5 09:19 1
crw--w---- 1 root tty 136, 2 Oct 5 08:26 ptmx
[root@leader pts]# chmod 666 0 #Similarly, modify the corresponding terminal permissions
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
© 2024 shulou.com SLNews company. All rights reserved.