Skip to content

Instantly share code, notes, and snippets.

@ykocaman
Last active March 5, 2024 09:00
Show Gist options
  • Save ykocaman/0ded2f30f6b139836198fd26d8c48e05 to your computer and use it in GitHub Desktop.
Save ykocaman/0ded2f30f6b139836198fd26d8c48e05 to your computer and use it in GitHub Desktop.
Komutlar
-- uzaktan baglanti
ssh user@192.168.1.1
-- dosyalama
ls -lah
cd ..
mkdir klasor
cp -r klasor yeni_klasor
mv yeni_klasor yepyeni_klasor
chmod 777 yeni_klasor
rm -rf klasor
nano dosya
cat dosya
tail -f dosya
-- root olma
sudo -s
-- update etme
apt-get update
apt-get upgrade
-- program yönetimi
apt-get install nginx
apt-get remove nginx
apt-get purge nginx
-- servis yönetimi
service nginx start
service nginx stop
service nginx restart
-- zaman ayarli iş yönetimi
crontab -e
-- composer kullanimi
composer install
composer update
composer require google/recaptcha
-- kullanici yönetimi
passwd user
adduser user
deluser user
cat /etc/passwd
-- process yönetimi
jobs
fg %1
bg %1
kill -9 %1
-- diger
man ls
htop
ping google.com
dig google.com
nc google.com 80 -v
byobu
Dizinler
/home > veri dosyaları
/etc > ayar dosyaları
/tmp > gecici dosyalar
/var/log > loglar
/opt > 3.parti programlar
Terminal Kısayol Tuşları
Tab: muhtemel komutları listeler
Tab + Tab: en yakin komuta tamamlar
Ctrl + Shift + C: Kopyala
Ctrl + Shift + V: Yapıştır
Ctrl + C: Komutu iptal eder
Ctrl + A: İmleci satır başına alır
Ctrl + E: İmleci satır sonuna alır
Ctrl + D: Oturumu kapatır
Ctrl + Z: Aktif komutu arkaplana atar ve bekletir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment