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)

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10617731/viewspace-961733/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10617731/viewspace-961733/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值