cd komutu bulunduğunuz dizini değiştirmenizi sağlar. (cd "change directory" kısaltmasıdır). Bir Terminal penceresi açtığında home dizininde olacaksın. Örnekler:
Kök dizine gitmek için,
cd /
yaz.
Home dizininize geçmek için,
cd
veya
cd ~
yazın.
Bir üst seviye dizine çıkmak için,
cd ..
yazın.
Bir önceki dizen geçmek için (veya geri),
cd -
yazın.
Bir seferde birden fazla dizin seviyesine geçmek için, gitmek istedğiniz yerin dizin yolunun tamamını yazın. Örneğin,/var/
dizinin alt dizini olan /www
dizinine doğrudan gitmek için
cd /var/www
yazın. Diğer bir örnek, home dizininin alt dizini olan Desktop
dizinine geçmek için
cd ~/Desktop
yazın.
The pwd command will allow you to know in which directory you're located (pwd stands for "print working directory"). For example, typing
pwd
in the Desktop
directory, will show
~/Desktop
.
![]() |
|
Ayrıca Xfce4 Terminal penceresinin başlık çubuğunda bu bilgiyi gösterir. |
The ls command will allow you to see the files in the directory you are in (ls stands simply for "list"). Used with certain options, you can see sizes of files, when files where made, and permissions of files. For example, typing
ls ~
will show you the files that are in your home directory. Examples:
Tüm dosyaları liskelemek için (gizli dosyalar dahil),
ls -a
yazın.
Uzun boyuttaki bir bilgiyi listelemek için,
ls -l
yazın. Bu komut izinler, yazar ve son değiştirme zamanı hakkında bilgiler içerir.
root dizininizi listelemek için,
ls /
yazın.
Her satırda bir zaman listelemek için,
ls -1
yazın.
The cp command will make a copy of a file for you (cp stands simply for "copy"). For example, type:
cp file foo
to make
a exact copy of file
and name it
foo
, but the file file
will still be there.
mv: The mv command will move a file to a different location or will rename a file (mv stands simply for "move"). Examples:
file
isimli bir dosyanın ismini foo
olarak değiştirmek için ,
mv file foo
yazın.
To move the file foo
to your Desktop
,
type:
mv foo ~/Desktop
. This will move foo but will not rename it. You must specify a new file name to rename a file.
![]() |
|
mvkomutunu sudokomutu ile kullanıyorsanız ~ kısayolunu kullanamazsınız, dosyalarınızın tam yolunu kullanmak zorundasınız . Çünkü root olarak çalıştığınız zaman, ~ root hesabının home dizinini gösterir, sizin kendi dizininizi değil.. |
The rm will remove or delete a file in your directory (rm stands simply for "remove"). It will not work on directories which have files in them. To remove directories, you can use rm -r. The r stands for recursive. For example:
rm -r foo
will remove the directory named foo and all of its contents.
![]() |
|
rm -r kullandığınızda dizinin tamamını ve içindeki herşeyi soru sormadan siler, bu nedenle komutu kullanırken dikkat edin.. |