这个是针对history命令的设置,The number of commands to remember in the command history. The default value is 500. export HISTFILESIZE=10000 这个是针对history文件(.bash_history)的设置,The maximum number of lines contained in the history file. When this variable is assigned a value, the his-tory...
1.vi .bash_history 关于.bash_history的配置 export HISTCONTROL=ignoreboth Don’t save duplicates export HISTSIZE=10000 这个是针对history命令的设置,The number of commands to remember in the command history. The default value is 500. export HISTFILESIZE=10000 这个是针对history文件(.bash_history)的设...
–scp:在本地主机和远程主机之间复制文件。 6. 压缩和解压缩命令 –tar:打包和解包文件。 –gzip:压缩文件。 –gunzip:解压缩文件。 –zip:创建和解压缩zip文件。 7. 其他常用命令 –find:查找文件。 –grep:在文件中搜索指定的模式。 –wc:统计文件的行数、字数和字符数。 –sort:对文件进行排序。 –histo...
1. ls命令:ls命令用于列出目录中的文件和子目录。常用的参数有: -a: 列出所有文件,包括隐藏文件 -l: 以长格式显示文件信息 -h: 以可读性较好的格式显示文件大小 2. cd命令:cd命令用于切换当前工作目录。常用的用法有: cd 目录名:进入指定目录 cd ..:返回上一级目录 cd ~:切换到当前用户的主目录 3. rm...
1.vi .bash_history 关于.bash_history的配置 export HISTCONTROL=ignoreboth Don’t save duplicates export HISTSIZE=10000 这个是针对history命令的设置,The number of commands to remember in the command history. The default value is 500. export HISTFILESIZE=10000 ...
Unix Shell 命令 clear– 清除屏幕 history– 显示以前命令的历史 时间和日期命令 date– 显示当前日期和时间 sleep– 等待给定的秒数 uptime- 找出系统已经运行了多长时间 Unix 用户命令 这些命令允许您获取有关环境中 Unix 用户的基本信息。 whoami– 显示您的用户名 ...
Unix 的基本命令: Unix 的基本命令: man info cd, alias, export, fg, bg, history ls, pwd, cp, mv, rm, diff, sort, cat, more, grep, find, which, head, tail, chown, chmod, file, mkdir, rmdir, ln, touch, split, cut, wc,
42. history:显示之前输入的命令历史记录。 43. clear:清除屏幕。 44. echo:打印输入到标准输出设备的文本。 45. exit:退出当前的shell。 46. alias:为一个命令创建一个别名。 47. source:执行一个脚本或命令文件。 48. man:显示命令的手册页面。 49. chmod:更改文件的权限。 50. chown:更改文件的所有者。
history 显示用户过去命用的命令 !!执行最近一次的命令20.uname 查看linux系统信息 参数:-a 所有信息 -r 版本号 -n 主机名21.建立软连接 ln [-sf] source target ln souce-file hard-link ln -sf source-file soft-link s表示软连接,f表示,若有同名文件在,则将它覆盖过去. 注:硬链接不能为目录创建,只...
1.vi.bash_historyvi.bash_history 关于.bash_ h_history的配置 exportHISTCONTROL=ignorebothxportHISTCONTROL=ignoreboth Don’tsaveduplicates exportHISTSIZE=10000xportHISTSIZE=10000 这个是针对history命令的设置,Thenumberofcommandstorememberinthecommandhistory.Thedefaultvalueis500. exportHISTFILESIZE=10000xportHISTFIL...