Basic LINUX/UNIX Commands(轉)
Basic LINUX/UNIX Commands(轉)[@more@]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, 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)
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, 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)
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10617731/viewspace-961733/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Postgres Basic Commands for Beginners
- LimeWire Basic 4.8.1 for Linux(轉)Linux
- linux commandsLinux
- 實用Unix/Linux 命令(轉)Linux
- [下載]PHP 5.1.2 for Unix/Linux(轉)PHPLinux
- linux與unix時間戳互轉Linux時間戳
- [轉]Handy adb commands for AndroidAndroid
- 轉:Linux、AIX UNIX、SCO UNIX下檢視硬體配置小結LinuxAI
- Unix/BSD/Linux的口令機制初探(轉)Linux
- 什麼是Linux,Linux與UNIX的關係(轉)Linux
- Mainframe CommandsAI
- Unix(Linux) C程式設計問題精粹 (轉)LinuxC程式程式設計
- Unix(Linux) C程式設計問題精粹(轉)LinuxC程式程式設計
- Unix(Linux)C程式設計問題精粹(轉)LinuxC程式程式設計
- oracle 中將unix/linux時間戳進行轉換(轉)OracleLinux時間戳
- Linux/Unix下pid檔案作用淺析(轉)Linux
- DOS/Windows和Linux/Unix間檔案格式轉換WindowsLinux
- 理解linux/unix作業系統守護程式(轉)Linux作業系統
- Linux病毒和UNIX病毒需要特別重視(轉)Linux
- Linux/Unix環境下的make命令詳解(轉)Linux
- 談兵:Linux/Unix作業系統入侵思路(轉)Linux作業系統
- Unix/Linux系統下輕量級Shell工具(轉)Linux
- 從 Unix 到 Linux 這一段歷史(轉)Linux
- 常用UNIX命令(轉)
- UNIX簡介(轉)
- 基本Linux許可權提升(Basic Linux Privilege Escalation)Linux
- Unix, Linux 和MacOSLinuxMac
- LINUX UNIX建立組Linux
- linux/unix find命令Linux
- Linux/Unix Errno CodeLinux
- Using UTL_FILE Package To Perform File I/O (UNIX) And Basic FAQ_44307.1PackageORM
- [轉] Linux and the Unix Philosophy第二章部分譯文Linux
- Linux/Unix平臺可執行檔案格式分析(轉)Linux
- vim-Filter commandsFilter
- Useful Oracle RAC CommandsOracle
- Three commands for OCR maintenanceAINaN
- [Bash] while & until commandsWhile
- [Bash] ps & pgrep commands