Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize File transfer between linux and windows system

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to transfer files to each other in linux and windows systems. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

1. Linux and windows transfer files to each other (provided that you must use XShell or securecrt, not PuTTY)

To transfer files between yum install-y lrzsz / / linux and windows, you need to install lrzsz on linux by yum.

Sz file name / / linux transfer the file to windows

Enter rz, select the file / / windows to send the file to linux, and transfer it to the current directory

Xshell and securecrt support

Putty does not support

II. User profile and password profile

?

one

two

three

four

five

[root@linux-01 ~] # cat / etc/passwd

Root:x:0:0:root:/root:/bin/bash / / use: divided into 7 segments: user name: password: UID: group ID: user comment information: user home directory: user shell

Bin:x:1:1:bin:/bin:/sbin/nologin

Daemon:x:2:2:daemon:/sbin:/sbin/nologin

Adm:x:3:4:adm:/var/adm:/sbin/nologin

The real password of the linux system is stored under / etc/shadow, but the password is encrypted.

[root@linux-01 ~] # cat / etc/shadow

Root:$6$ NlEjlezY$KBV252Z71EgreUGmWbXKeI9Yo3PQ9RTpl3.lXSIS0QDZWKTCGUIT3Yc7cBzJBfdX5Lv0.kJWEtlrSjadIFs4P0:17622:0:99999:7::: / / etc/shadow corresponds to the files under / etc/passwd one by one

Bin::17110:0:99999:7::: / / use: split into 9 user names: user password: how many days since the last password change on January 1, 1970: how many days will it take to change the password: how many days after the password expires: how many days before the password expires warning: how many days the password has expired naturally and you have not changed the password, this password will be locked: the life cycle of an account: reserved field

Daemon::17110:0:99999:7:::

Adm:*:17110:0:99999:7:::

[root@linux-01] # head-N1 / etc/shadow; tail-N2 / etc/shadow

Displays both the first and last lines of a file in command format: head-N1 file path; tail-N2 file path

III. User group management

?

one

two

three

four

five

six

seven

eight

[root@linux-01 ~] # ls / etc/shadow

Shadow shadow- / / A file with a minus sign is automatically backed up by the system. If you don't want to delete a user file, you can copy the same file with a minus sign to use it.

[root@linux-01 ~] # ls / etc/gshadow

Gshadow gshadow-

[root@linux-01 ~] # ls / etc/passwd

Passwd passwd-

[root@linux-01 ~] # ls / etc/group

Group group-

Add Group

?

one

two

three

four

five

six

seven

eight

[root@linux-01 ~] # groupadd grp1 / / add grp1 group

[root@linux-01 ~] # tail-N1 / etc/group / / View the last line of the group file

Grp1:x:1003:

[root@linux-01 ~] # groupadd-g 1005 grp2 / / add and specify a group ID of 1005 for grp2

[root@linux-01 ~] # tail-n3 / etc/group / / View the last three lines of the group file

Slocate:x:21:

Grp1:x:1003:

Grp2:x:1005:

Delete a group

[root@linux-01 ~] # groupdel grp1 / / Delete grp1 group

Note: empty groups can be deleted, but those with users under the group cannot be deleted.

IV. User management

Add user

?

one

two

three

four

[root@linux-01 ~] # useradd user3 / / add user3 users

[root@linux-01] # tail-N2 / etc/passwd

Hll:x:1001:1002::/home/hll:/bin/bash

User3:x:1002:1006::/home/user3:/bin/bash

Add and specify UID and groups

?

one

two

three

four

five

[root@linux-01 ~] # useradd-u 1004-g grp2 user4 / / add user4 user and specify UID as 1004, add to grp2 group

[root@linux-01] # tail-N3 / etc/passwd

Hll:x:1001:1002::/home/hll:/bin/bash

User3:x:1002:1006::/home/user3:/bin/bash

User4:x:1004:1005::/home/user4:/bin/bash

Add a user and specify a home directory

[root@linux-01] # useradd-u 1010-g grp2-d / home/user3-s / sbin/nologin user6

-M option: add users but do not create user home directory

[root@linux-01 ~] # useradd-M user7 / / add a user7 user but do not create its home directory

Delete user

[root@linux-01 ~] # userdel user3 / / Delete the user3 user, but do not delete the user's home directory

-r option: delete the user while deleting the user's home directory

?

one

two

three

[root@linux-01] # userdel-r user4

[root@linux-01 ~] # ls / home

Hll user1 user3

On how to achieve file transmission in linux and windows systems to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Original link: http://blog.51cto.com/13669226/2094043

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report