Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux-commands updated #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Docs/images/grep.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/images/head.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/images/head2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/images/insertop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/images/less.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/images/less2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/images/mkdir.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/images/tail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Docs/images/tail2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions Docs/linux-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,41 @@

+ rm komutu, verilen argümanı silmeye yarar ve **dikkatli kullanılması** gerekmektedir.

## mkdir Komutu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bütün komutları da metnin içerisine yazalım


+ mkdir komutu, dosya oluşturmak için kullanılır ve tek argüman gerektirir.

![mkdir komutu kullanımı](images/mkdir.png)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

komutları şu şekilde yazalım:

mkdir test


## less Komutu

+ less komutu, cat komutu yerine kullanılabilecek, görsel açıdan ve okunma açısından daha kolay bir çıktı veren bir komuttur.

![less komutu kullanımı](images/less.png)
![Komutun uygulanmasından sonraki sonuç](images/less2.png)

## head Komutu

+ head komutu, sadece 'head dosyadi' şeklinde kullanıldığında, dosyanın ilk 5 satırını verir fakat 'head -satirsayisi dosyaadi' şeklinde kullanıldığında, girilen satır sayısı kadar satırı gösterir.

![head komutu ve kullanımı](images/head.png)
![head komutunu kullanarak belirli bir satır sayısını yazdırma](images/head2.png)

## tail Komutu

+ tail komutu, sadece 'tail dosyadi' şeklinde kullanıldığında, dosyanın son 5 satırını verir fakat 'tail -satirsayisi dosyaadi' şeklinde kullanıldığında, girilen satır sayısı kadar sondan satırı gösterir

![tail komutu ve kullanımı](images/tail.png)
![tail komutunu kullanarak belirli bir satır sayısını yazdırma](images/tail2.png)

## ">" Operatörü Kullanımı

+ ">" operatörü, ilk argümanda belirtilen bir dosyanın tamamını ya da belirli bir kısmını, 2. argümana aktarmaya yarar.

![> operatörü kullanımı](images/insertop.png)

## grep Komutu

+ grep komutu bir dosyada belirli bir kelimeyi bulmak için kullanılır. Kullanmak için, 2 argüman gerekir 1.si aranacak kelime öbeği, 2.si ise arama yapılacak belgedir.

![grep komutu kullanımı ve sonucu](images/grep.png)