dos win to linux howto 4 EA7Y3U5H3ZG6V4TUA3UQJNQJZ6KNFNQGRB3Z6BY


From DOS/Windows to Linux HOWTO : Using Directories 4. Using Directories4.1 Directories: Preliminary NotionsWe have seen the differences between files under DOS and Linux. As for directories, under DOS the root directory is \, under Linux / is. Similarly, nested directories are separated by \ under DOS, by / under Linux. Example of file paths: DOS: C:\PAPERS\GEOLOGY\MID_EOC.TEX Linux: /home/guido/papers/geology/middle_eocene.texAs usual, .. is the parent directory and . is the current directory. Remember that the system won't let you cd, rd, or md everywhere you want. Each user starts from his or her own directory called 'home', given by the system administrator; for instance, on my PC my home dir is /home/guido.4.2 Directories PermissionsDirectories, too, have permissions. What we have seen in Section Permissions and Ownership applies to directories as well (user, group, and other). For a directory, rx means you can cd to that directory, and w means that you can delete a file in the directory (according to the file's permissions, of course), or the directory itself.For example, to prevent other users from snooping in /home/guido/text: $ chmod o-rwx /home/guido/text4.3 Directories: Translating Commands DIR: ls, find, du CD: cd, pwd MD: mkdir RD: rmdir DELTREE: rm -R MOVE: mvExamples DOS Linux --------------------------------------------------------------------- C:\GUIDO>DIR $ ls C:\GUIDO>DIR FILE.TXT $ ls file.txt C:\GUIDO>DIR *.H *.C $ ls *.h *.c C:\GUIDO>DIR/P $ ls | more C:\GUIDO>DIR/A $ ls -l C:\GUIDO>DIR *.TMP /S $ find / -name "*.tmp" C:\GUIDO>CD $ pwd n/a - see note $ cd ditto $ cd ~ ditto $ cd ~/temp C:\GUIDO>CD \OTHER $ cd /other C:\GUIDO>CD ..\TEMP\TRASH $ cd ../temp/trash C:\GUIDO>MD NEWPROGS $ mkdir newprogs C:\GUIDO>MOVE PROG .. $ mv prog .. C:\GUIDO>MD \PROGS\TURBO $ mkdir /progs/turbo C:\GUIDO>DELTREE TEMP\TRASH $ rm -R temp/trash C:\GUIDO>RD NEWPROGS $ rmdir newprogs C:\GUIDO>RD \PROGS\TURBO $ rmdir /progs/turboNotes:when using rmdir, the directory to remove must be empty. To delete a directory and all of its contents, use rm -R (at your own risk).the character '~' is a shortcut for the name of your home directory. The commands cd or cd ~ will take you to your home directory from wherever you are; the command cd ~/tmp will take you to /home/your_home/tmp.cd - ``undoes'' the last cd.

Wyszukiwarka

Podobne podstrony:
dos win to linux howto 6
dos win to linux howto
dos win to linux howto 10
dos win to linux howto 7
dos win to linux howto 5
dos win to linux howto 9 iq2a3cn73r5fitbqq3jmuyddd552pzckbve6mni
dos win to linux howto 2
dos win to linux howto 1
dos win to linux howto 8
vms to linux howto 6 orpzzxmiy5oizudwzslh4p4kfunjtgy6prdxrwi orpzzxmiy5oizudwzslh4p4kfunjtgy6prdxrwi
vms to linux howto 5zv2dnz24mcm6ujoqsm4mrsb6v5tbjxddhtqu5a 5zv2dnz24mcm6ujoqsm4mrsb6v5tbjxddhtqu5a
vms to linux howto 14 cm5l4wlt7qtalypc34eimd4eyk3x4un7tij3hty cm5l4wlt7qtalypc34eimd4eyk3x4un7tij3ht
vms to linux howto 1 wocqfdo5putowphbtwsosy4r4gw6gaacb7d53sy wocqfdo5putowphbtwsosy4r4gw6gaacb7d53sy
vms to linux howto 1 wocqfdo5putowphbtwsosy4r4gw6gaacb7d53sy wocqfdo5putowphbtwsosy4r4gw6gaacb7d53sy
vms to linux howto 10 bmuwkvga2iufcvv6gjnuyaleagqv3xj3qwihrlq bmuwkvga2iufcvv6gjnuyaleagqv3xj3qwihrl
vms to linux howto 7 l7kbq6xnrrkkazl2tvmbvm25fe7zo7v4mctzfnq l7kbq6xnrrkkazl2tvmbvm25fe7zo7v4mctzfnq
vms to linux howto 5 5gnldmqe4ayl45wuhxe72clxgmyt3dmyl2nhuza 5gnldmqe4ayl45wuhxe72clxgmyt3dmyl2nhuza
vms to linux howto 4 rbjwb2i6cf666xqwnvyy27m6ng2p5mcva5iwuji rbjwb2i6cf666xqwnvyy27m6ng2p5mcva5iwuji
vms to linux howto 13 vodijua4gjnr2qhakcvaroutkbkmgr6citxjlsq vodijua4gjnr2qhakcvaroutkbkmgr6citxjls

więcej podobnych podstron