Содержание
- 2. vi editor modes in vi editor Command insert esc key to switch between modes. mostly used
- 3. File handling commands Manipulating Files: chmod cp file mv rm head tail cat
- 4. Background Process & Some Operators : Standard Input Device-0 Standard Output Device-1 Standard Error Device-2 Redirect
- 5. Ex: $ls | more $ls > dir_listing.txt $cat append: $ ls >> dir_listing.txt The following adds
- 6. Directory Related Commands: cd mkdir pwd ls Process Related Commands: ps top netstat pstree kill
- 7. Disk related commands: du - Summarize disk usage of each FILE, recursively for directories. df -
- 8. Searching Files using command: find / -name file.c find /search/path -name filename
- 9. Search for a word in File(s) grep text /some/path/file ex: grep main hello.c grep -r main
- 10. # mv files older then 1 day to dir TMP find . -atime +1 -type f
- 11. super user commands : su and su - fdisk sudo
- 12. Remote machine commands: To copy a file from remote machine to your system: scp oss@10.176.34.171:/home/oss/small.txt .
- 13. sed – stream editor sed 's/texttofind/replacewiththis/g' filename #replace linux as GNULinux and save result in file1.txt
- 14. Commands : Online Terminal - http://www.webminal.org http://ss64.com/bash/index.html http://www.wagoneers.com/UNIX/ Basics: http://linux.about.com/od/itl_guide/a/gdeitl_idx.htm http://www.ee.surrey.ac.uk/Teaching/Unix/index.html Tips: http://www.builderau.com.au/program/linux/soa/10-shortcuts-to-master-bash/0,339028299,339279043,00.htm http://www.wagoneers.com/UNIX/FIND/find-usage.html
- 16. Скачать презентацию