首页 > 系统相关 >linux 基础操作

linux 基础操作

时间:2024-09-04 10:37:06浏览次数:5  
标签:show 基础 cd file linux directory 操作 folder change

Linux Operations

origin url(https://ubuntu.com/tutorials/command-line-for-beginners#4-creating-folders-and-files)

File operators

open a terminal

_ shift+alt+t _

show current working directory

_ pwd _

change directory

  • cd *
  • change directory to root _ cd / _
  • change directory to absolute path _ cd abPath _
  • change directory to relative path _ cd rePath _

creating floder

  • mkdir dirname *
  • create multiple folder _ mkdir name1 name2 name3 _
  • create parent folder too _ mkdir -p/--parent name1/name2/... _
  • create a flie named with " " - use "" to embed name or use escape haractor ‘\’

show file names in a folder

_ ls _

redirection charactors

  • :redirection with refresh

  • :redirection without refresh
    ls > output.txt

  • <

look the content in a file

cat output1.txt

  • show multiple files : cat file1 file2 file3

show the argument on the screen

echo ".."

quick mark

  • ?:any single character
  • *:zero or more characters

show file contents with the form of paper

less/more filename

Moving and manipulating files

move file to another directory

mv filename directory

标签:show,基础,cd,file,linux,directory,操作,folder,change
From: https://www.cnblogs.com/forCC/p/18395979

相关文章

  • C++成员变量的new操作不应该放在构造函数中
    C++成员变量的new操作不应该放在构造函数中:理由如下:https://blog.csdn.net/lmb1612977696/article/details/77850378#:~:text=C++%E7%B1%BB%E4%B8%AD%E7%9A%84构造函数中尽量不要有new的操作,new的操作可以定义一个Init()来单独处理,代码如下:1classTest{2public:3......
  • Linux-devops
    云原生时代:以Devops、SRE框架为指导,Docker/K8S/微服务为基础,用分布式方式加上Python和Go语言,构建一套云技术产品体系,以及进行高级管理工具的二次开发,实现属于公司自己的自动化运维体系以及云技术体系的自动化产品。使用的自动化运维产品,可以用rancherargoCDtecktonClgit......
  • Linux启动后自动登录root进入控制台
    通过修改/etc/inittab文件来实现1.buildroot编译出来的 /etc/inittab文件如下##Copyright(C)2001ErikAndersen<[email protected]>##Note:BusyBoxinitdoesn'tsupportrunlevels.Therunlevelsfieldis#completelyignoredbyBusyBoxinit.Ifyo......
  • android kotlin基础复习—for while do...while
    1、新建一个文件kt:2、循环的几种用法:forwhiledo...whilefor:println("----for使用-----")valitems=listOf("apple","banana","kiwi")for(iteminitems){println(item)}for(indexinitems.indic......
  • Xencenter控制台操作通过MCS发布的虚拟机鼠标不同步问题处理
    问题描述在Xencenter控制台里面操作通过Machinecreationservices(Mcs)发布的虚拟机时会发现鼠标不同步,从而导致操作困难,如下图实际鼠标位置和虚拟机鼠标位置不同,问题分析在XenAppandXenDesktop7.0之后,为了提高服务器上通过MC发布的虚拟机密度,Xenserver上面分配给虚拟机的资源......
  • 最新Kali Linux安装教程(非常详细)(附镜像包)
    镜像下载:链接:https://pan.baidu.com/s/1W2Jpl5_UNNFKaIs8fLIl7w?pwd=xxxx 提取码:xxxx  配置虚拟机这里我们以最新的vm17.5为例。进行配置虚拟机。1.创建新的虚拟机2.自定义3.直接下一步4.选择稍后安装操作系统因为kali是基于debian深度开发,这里我们选debia......
  • Linux服务器之TOP命令详解
    在做性能调优的过程中,我们经常需要用到top命令来查看服务器实时的资源占用情况,通过top命令,我们可以查看到服务器的各项性能指标以及各个进行的资源使用情况。命令格式:top[参数]命令参数:-b批处理-c显示完整的治命令-I忽略失效过程-s保密模式-S累积模式-i<......
  • LLM大模型基础知识学习总结
    大家好,我是Edison。在这个已经被大模型包围的时代,不了解一点大模型的基础知识和相关概念,可能出去聊天都接不上话。刚好近期我也一直在用GPT和GitHubCopilot,也刚好对这些基础知识很感兴趣,于是学习了一下,做了如下的整理总结,分享与你!一句话描述GPTGPT:GenerativePre-TrainingTra......
  • 【信息论基础】信息路基础绪论——信息的概念,信息量和信息熵,数字通信系统模型
    1.、信息的定义:事物运动状态或存在方式的不确定状态(fromShannon)2、信息是有大小之分的。3、信息量(自信息)的计算如下:4、我们使用信息熵(informationentropy)这一概念来描述 信息的平均不确定度:(1)例1:对于一个信源的输出有x1~x8,对应的码字输出分别为000,001,010,011,100,10......
  • python 常见OS基本操作
    python常见OS基本操作Python的os模块提供了与操作系统交互的各种功能。下面按照一些常见的使用场景,按顺序介绍os模块的一些基本操作及其示例代码。1.获取和改变当前工作目录首先,通常我们会获取当前的工作目录,然后可能会改变工作目录。python深色版本importos#获取......