212 CHAPTER 13 INTRODUCING THE BASH SHELL (Java web server)

212 CHAPTER 13 INTRODUCING THE BASH SHELL find a comprehensive list of useful shell commands, together with explanations of what they do and examples of typical usage. Table 13-1. DOS Commands and Their Shell Equivalents Command DOS Command Linux Shell Command Usage Copy files COPY cp cp Move files MOVE mv mv Rename files RENAME mv mv
1 Delete files DEL rm rm 2 Create directories MKDIR mkdir mkdir Delete directories DELTREE/RMDIR rm rm rf Change directory CD cd cd Edit text files EDIT vi vi View text files TYPE less less 3 Print text files PRINT lpr lpr Compare files FC diff diff Find files FIND find find name Check disk integrity SCANDISK fsck fsck4 View network settings IPCONFIG ifconfig ifconfig Check a network connection PING ping ping

View a network route TRACERT tracepath tracepath
Clear screen CLS clear clear Get help HELP man man 5 Quit EXIT exit exit 1 The BASH shell offers a rename command, but this is chiefly used to rename many files at once. 2 To avoid being asked to confirm each file deletion, you can add the -f option. Be aware that the rm command deletes data instantly, without the safety net of the Recycle Bin, as with the GNOME desktop. 3 Use the cursor keys to move up and down in the document. Type Q to quit. 4 This is a system command and can be run only on a disk that isn t currently in use. To scan the main partition, you ll need to boot from the installation CD and select the rescue option. Then issue the fsck command. 5 The info command can also be used.

Leave a Reply