Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
关于系统方便操作命令的缺失问题 ll 命令
deepin Talks
1394
views ·
14
replies ·
To
floor
Go
chinsq
deepin
2017-06-05 02:52
Author
很多时候我们使用习惯了 centos 或者 ubuntu 的系统我们发现 ll 命令 这么方便的东西怎么不见了,然后各种纠结 只能使用 ls -l
不过这都没关系,命令我们可以自己定制
步骤1:安装vim 编辑器
sudo apt-get install vim
Copy the Code
步骤2:定义命令名称
sudo vim /usr/bin/<脚本名称>
# 例如我们定义 ll 脚本 如下:
sudo vim /usr/bin/ll
Copy the Code
到这里大家可能都明白了 所谓我们控制的脚本都在这个目录下的太方便的,可以定义属于自己的脚本了
步骤3:输入脚本
#!/bin/bash
ls -l
Copy the Code
保存 然后就可以美美的使用了
Reply
Like 0
Favorite
View the author
All Replies
chinsq
deepin
2017-06-05 02:53
#1
欢迎大家加我 QQ:3406336919 跟诸位大大们一起交流
Reply
Like 0
View the author
chinsq
deepin
2017-06-05 02:59
#2
哦对了,需要搞完后给那个 命令授权
chmod +x /usr/ll
Copy the Code
Reply
Like 0
View the author
sudo_free
deepin
2017-06-05 03:12
#3
https://bbs.deepin.org/post/139191
https://bbs.deepin.org/post/134296
https://bbs.deepin.org/user/48640
论坛发帖子看来还是有必要出个索引2333
Reply
Like 0
View the author
HarryZhao
deepin
2017-06-05 03:14
#4
习惯用别名
Reply
Like 0
View the author
ghou
deepin
2017-06-05 03:15
#5
一句 alias 搞定的事情,为什么还要搞这么复杂……
KISS!
Reply
Like 0
View the author
Comments
noparkinghere
2017-06-05 17:43
1
不避风云
deepin
2017-06-05 03:15
#6
老大,别这么逗可以不。你可以在~/.bashrc末尾加一行 alias ll='ls -l',再执行一下 source ~/.bashrc ,可以学学Linux基础知识,再来用deepin的,这样对自己学习效率很有帮助。
Reply
Like 0
View the author
Feng Yu
deepin
2017-06-05 04:11
#7
ll在任何发行版都是别名,你自己看看centos和ubuntu的alias输出看看
Reply
Like 0
View the author
a946488029
deepin
2017-06-05 05:58
#8
echo 加你QQ 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
echo 这个ll la 都是如楼上所说的别名,楼主你是来这个论坛试水的吗?
Reply
Like 0
View the author
michaelyajun
deepin
2017-06-05 06:14
#9
直接编辑.bashrc中的alias就搞定了 你非要整得这么复杂
Reply
Like 0
View the author
lcw0268
deepin
2017-06-05 06:15
#10
支持楼主。
Reply
Like 0
View the author
jingle
deepin
2017-06-05 16:28
#11
为何不在终端自定义命令呢
Reply
Like 0
View the author
翻过山峰看见云
deepin
2017-06-05 16:32
#12
我只是路过,表示看不懂你们在说什么
Reply
Like 0
View the author
He8617439
deepin
2017-06-05 16:36
#13
我上手就是deepin,没有别名。。。
Reply
Like 0
View the author
noparkinghere
deepin
2017-06-05 17:44
#14
缺失 locate 命令,楼主帮整个?
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Four agent skills for laptop power, sleep, and honest bug reports
Installing qemu-user breaks deepin
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
不过这都没关系,命令我们可以自己定制
步骤1:安装vim 编辑器
步骤3:输入脚本