Linux Learnning

本文介绍了IP地址在网络中的作用,如何使用ifconfig和ping检查网络设置,强调了SSH和SCP的数据加密与压缩功能。还讨论了文件和目录权限管理,以及CMakeList.txt在项目中的应用。最后提到在Ubuntu中关闭系统的命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. what is the IP address and network card

a. network card is a kind of hardware device that have the duty to make computer communite each other.
b. IP is the address inseted int he network
if the phone is computer, network card is like SIM card, and the IP is like phone number.

the name of netwrok card is just a mark and not the key ,and the key is the cooresponding address !

2. ifconfig and ping
ifconfig order / command is used for checking and config the configeration information of netwrok card.
ifconfig | grep inet (give the )
ping check the connection to the target IP address,

ping IP address / ping 127.0.01 (check local nerwork card)

SSH /SCP
Data transmission is encrypted to prevent information leakage.
Data transmission is compressed, which can improve transmission speed.

域名,端口号 IP address
域名是IP address 的别名,方便记忆 (www.itcast.cn
so, ping + domin name
在这里插入图片描述
send a data package with the 56 bytes, and receive 64 bytes from the other computer which you are commucate with the Ip addresss of 220.181.112.244, and cosuming time is “time = 2.08 ms”

端口号: 找到服务器上运行的应用程序

SSH: [-p port] user@remote
ssh -X (需要图传配置选项)

scp -P port file1 user@remote:
scp -P 22 -r user@remote:Desktop 复制文件夹

文件和文件夹的transmition direction is From firest file to secontd file.


2024 04 21
change the access of files or directory
ls -l : shows the access of files
oreder form:
chmod _/+ rwx directory/files name

surpervisor user

在这里插入图片描述
group / user / file
a file only belongs a grop
a user can belongs some grops and a group and includs some users
在这里插入图片描述
在这里插入图片描述
today, the group / user / 文件的读写执行权限问题


明天学习 Cmakelist.txt 文件的内容。

关机指令for ubuntu:

poweroff / halt / shoutdown

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值