`

ubuntu如何使用 ll

阅读更多

用过 Redhat 的朋友应该很熟悉 ll 这个命令,就相当于 ls -l,但在 Ubuntu 中就不行了。严格来说 ll 不是一个命令,只是命令的别名而已。很多 Linux 用户都使用 bash shell,对普通用户来说用得最多的就是命令补全 (按 tab 键) 和 alias (别名) 功能。Ubuntu 默认建立的用户都用的 bash shell,所以它也支持别名功能,我们只需要 gedit ~/.bashrc 这个文件.

去掉 #alias ll='ls -l' 前面的 # 号就能使用 ll 命令了。

lifehacker 也介绍到,在 Ubuntu 上建立一些常用别名来简化操作.

如在 ~/.bashrc 中加入一行 alias ins="sudo apt-get install" ,就可以用类似 ins gftp 这种命令来安装软件了,它就相当于 sudo apt-get install gftp。

按照这个思路,自己就可以建立一大堆别名来替换常用命令。

分享到:
评论
1 楼 blackg2 2010-01-19  
原来如此,受教了~~~

相关推荐

    新装ubuntu10.04后的一些设置

    我们可以使用 alias 命令来定义 ll 命令,例如:`alias ll='ls -l'`。这样,我们就可以使用 ll 命令来查看文件的详细信息。 5. TFTP 安装与设置 TFTP(Trivial File Transfer Protocol)是一个简单的文件传输协议...

    linux命令大全Ubuntu使用命令大全

    linux常用命令大全,linux命令大全Ubuntu使用命令大全

    linux Ubuntu下安装 Source insight

    Linux Ubuntu下安装Source Insight是指在Ubuntu操作系统下安装Source Insight软件,从而实现在Linux平台下使用Source Insight编辑和阅读源码。本文将详细介绍如何在Ubuntu下安装Source Insight,并 troubleshooting...

    Ubuntu常用命令

    例如,使用alias ll='ls -l'可以让用户通过输入ll来执行ls -l命令。 9. History命令 History命令用于管理命令历史记录。用户可以查看、设定命令记录表的长度,以及使用命令历史。 10. 数据压缩 数据压缩常用于节省...

    英文原版-Ubuntu Kung Fu 1st Edition

    You’ll also get a crash course in Ubuntu’s flavor of system administration. Whether you’re new to Linux or an old hand, you’ll find tips to make your day easier. ,解压密码 share.weimo.info

    ubuntu环境搭建jira

    本文将详细介绍如何在Ubuntu上配置Jira,同时不使用Jira自带的数据库,而是采用MySQL作为数据存储。 首先,由于Jira(以版本7.2.3为例)与MySQL的新版本(如5.7)可能存在兼容性问题,因此我们需要安装MySQL 5.6。...

    Ubuntu Pocket Guide and Reference: A concise companion for day-to-day Ubuntu use

    First, you'll learn about installation--getting Ubuntu onto your computer--after which you'll learn how to configure your computer's hardware. Following this, you'll be introduced to the Ubuntu ...

    Beginning.Ubuntu.LTS.Server.Administration.From.Novice.to.Professional.2nd.Edition

    What you’ll learn Administer, install, and configure the 5–year Hardy–Heron Ubuntu Server Long Term Support Edition of the most popular Linux distribution in the world. Use the new installation and...

    Ubuntulinux命令大全[汇编].pdf

    Ubuntu 的目标是提供一个免费、开源、易于使用的操作系统,适合个人和企业使用。 【Ubuntu 的特点】 Ubuntu 的主要特点是易于使用和安装。Ubuntu 提供了一个图形化的安装程序,用户可以轻松地安装 Ubuntu。Ubuntu ...

    ubuntu使用教程

    【Ubuntu使用教程】 Ubuntu是一款基于Debian的开源操作系统,它以用户友好和易用性而闻名,适合初学者和专业人士。本教程将介绍在Ubuntu中进行基本的文件管理和磁盘管理操作。 ### 1. 文件管理 #### `ls` `ls` ...

    ubuntu常用命令大全

    Ubuntu作为一款广泛使用的Linux发行版,其强大的命令行工具为用户提供了高效的操作环境。本文将深入解析一系列Ubuntu中的常用命令,帮助读者掌握基础至进阶的文件与磁盘管理、文件权限调整以及用户管理等技能。 ###...

    英文原版-Ubuntu Server Administration 1st Edition

    Administer Ubuntu Server in the EnterpriseRealize a ... You'll also get details on sharing resources via NFS and Samba, protecting your system, and customizing the Linux kernel.,解压密码 share.weimo.info

    Beginning Ubuntu Linux Part1

    You’ll also learn how to use Evolution, Ubuntu’s e-mail program, and how to run Microsoft Office under Ubuntu. Part 7 carries on from Part 4, taking an even more in-depth look at the underlying ...

    Beginning Ubuntu Linux Part2

    You’ll also learn how to use Evolution, Ubuntu’s e-mail program, and how to run Microsoft Office under Ubuntu. Part 7 carries on from Part 4, taking an even more in-depth look at the underlying ...

    stm32在ubuntu linux下开发测试源文件

    1. **交叉编译工具链**:由于STM32硬件平台与Ubuntu Linux的架构不同,我们需要使用交叉编译工具链,如`gcc-arm-none-eabi`,来构建针对STM32的可执行代码。这个工具链包括了编译器、链接器、汇编器等,能够生成适合...

    ubuntu 切换java版本profile文件

    我们可以使用`ll`命令(`ls -l`的别名)来查看包含隐藏文件在内的所有文件和目录。 ```bash ll ~/.profile ``` 接下来,我们需要给`.profile`文件添加执行权限,以便编辑和运行。执行权限允许我们运行该文件作为...

    ubuntu-gcc、g++不同版本的安装和切换.pdf

    在Ubuntu系统中,GCC(GNU Compiler Collection)是一套广泛使用的开源编译器集合,它包含了多种编程语言的前端,如C、C++等。对于开发人员而言,在进行项目开发时可能需要使用到不同版本的GCC或G++(GCC的C++前端)...

Global site tag (gtag.js) - Google Analytics