免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 717 | 回复: 0
打印 上一主题 下一主题

Basic LINUX/UNIX Commands [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-10-18 16:53 |只看该作者 |倒序浏览

               
Basic LINUX/UNIX Commands
  • startx (start X-windows)
      
  • exit (to exit completely once you have exit the windows
      system)
      
  • ls (lists the files of the current directory or other
      directories)
      
  • cd (change directory to home directory)
      e.g. If your home directory is /u/ugrad/mikep and you execute
      the command cd from another directory
      in the system, you'll be returned to /u/ugrad/mikep
      
  • cd directory-name (change directory to directory-name)
      
  • mkdir directory-name (creates an new directory with
      name directory-name)
      e.g. mkdir work (create directory with name work)
            cd work (change directory to work)
      
  • mv file1 file2 (move file1 to file2,
      same as rename)
      e.g. mv file1 cs111 (move file1 to subdirectory cs111)
      
  • rm file1 (remove file1, [color="#ff00ff"]be careful:
      once removed, is removed)
      
  • rm -i file1 (remove file, but it will ask for confirmation)
      
  • whois gives information about a domain.
      e.g. whois gate.net
      
  • whoami (display username)
      
  • whereis command-name (returns the path of command-name)
      
  • man command-name (prints how command-name works)
      
  • hostname (prints the hostname)
      
  • cp file1 file2 (copies file1 to file2)
      
  • pwd (prints the working directory, i.e. "where
      we are")
      
  • pico prog1.c (use the pico text editor to modify
      prog1.c; emacs, and vi can be used also)
      
  • gcc prog1.c (compile prog1.c, the executable
      is a.out), cc instead of gcc should also work.
      
  • gcc -o prog1 prog1.c (same as above but the name of
      the executable is prog1)
      
  • ./prog1 (run prog1; it should be used when
      just the name of the executable is not enough)

               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22178/showart_186875.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP