unix basic commands

1. man - an interface to the on-line reference manuals

$man man

2. apt - advanced package tool

  SEE ALSO: apt-cache, apt-get, apt.conf, sources.list

$apt-cache search mysql

3.sudo - execute a command as another user (sudo allows a permitted user to execute a command as the superuser or another user, as specified by the security policy.)

$sudo apt-get install python2.7

4.su - change user ID or become superuser

cc@debian:~$su
Password:
[email protected]:/home/cc#su -- cc
cc@debian:~$

5. ls - list directory contents

$ls -l
$ls -la

6. pwd - print name of current/working directory

$pwd

7. mkdir - make directories

$mkdir test1

8. mv - move (rename) files

$mv test1 test2

9.rm - remove files or directories

$rm -fr test2

10.more, less - file perusal filter for crt viewing (a filter for paging through text one screenful at a time.)

$man more|less

note: ‘|‘ is pipeline, see more on wiki about pipeline

11.grep - grep, egrep, fgrep, rgrep - print lines matching a pattern

$ls -la|grep django-web
时间: 2024-10-05 21:33:44

unix basic commands的相关文章

Linux--Introduction and Basic commands(Part one)

Welcome to Linux world! Introduction and Basic commands--Part one J.C 2018.3.11 Chapter 1 What Is Linux? Linux is a Unix-like open source operating system. At the core of the operating system is the Linux kernel. It acts as the intermediary between t

Network Basic Commands Summary

Network Basic Commands Summary set or modify hostname a)     temporary ways hostname NEW_HOSTNAME, but if you reboot your system, it will disabled. b)    permanent ways: edit "/etc/sysconfig/network" HOSTNAME, then restart system, it will effect

[Practical Git] Navigate git command pager output with Unix less commands

When using a git command that can have a large amount of output (like git log, git diff, or git blame), Git opens the command output in our terminal "pager"; on most modern Unix-based systems, the default pager will be "less". Learning

CheeseZH: Octave basic commands

1 1.Basic Operations 2 5+6 3 3-2 4 5*8 5 1/2 6 2^6 7 1 == 2 %false ans = 0 8 1 ~= 2 %true ans = 1 9 1 && 0 %AND ans = 0 10 1 || 0 %OR ans = 1 11 xor(1,0) %ans = 1 12 PS1('>> '); %change the command prompt info 13 a = 3 %show a = 3 in screen

unix basic command

1. get start Command Example Description ls ls ls -a ls -l 输出目录文件 输出文件包括隐藏文件 输出文件详细信息 pwd pwd show present working dir cd cd dir cd .. cd ./a/b cd ~icey/a cd /home/username/documents change dir 返回上一个目录 到当前目录下的a/b文件夹中 到某个用户的子文件夹 从根目录开始 mkdir mkdir ice

[转载] Linux/Unix 系统负载原理解析[英文]

PDF下载:http://vdisk.weibo.com/s/cULRe2mYCQsPz/1407491911 [转载] http://yuxu9710108.blog.163.com/blog/static/23751534201022593028822/ CALC_LOAD() calc_load()工作原理 In this two part-series I want to explore the use of averages in performance analysis and ca

Squid Proxy Server 3.1

Improve the performance of your network using the caching and access control capabilitiess of squid. A beginner level knowledge of Linux/Unix operating system familiarity with basic commands is all what you need.Squid runs almost on all Linux/Unix op

Redis快速入门及实现

redis的概念 (1)Redis的优点 以下是Redis的一些优点. 异常快 - Redis非常快,每秒可执行大约110000次的设置(SET)操作,每秒大约可执行81000次的读取/获取(GET)操作. 支持丰富的数据类型 - Redis支持开发人员常用的大多数数据类型,例如列表,集合,排序集和散列等等.这使得Redis很容易被用来解决各种问题,因为我们知道哪些问题可以更好使用地哪些数据类型来处理解决. 操作具有原子性 - 所有Redis操作都是原子操作,这确保如果两个客户端并发访问,Red

[转]Redis快速入门

本文转自:http://www.yiibai.com/redis/redis_quick_guide.html Redis是一个开源,先进的key-value存储,并用于构建高性能,可扩展的Web应用程序的完美解决方案. Redis从它的许多竞争继承来的三个主要特点: Redis数据库完全在内存中,使用磁盘仅用于持久性. 相比许多键值数据存储,Redis拥有一套较为丰富的数据类型. Redis可以将数据复制到任意数量的从服务器. Redis 优势 异常快速:Redis的速度非常快,每秒能执行约1