fix replace sh with shell for language postfix
This commit is contained in:
committed by
Kristofer Koishigawa
parent
22f52296bc
commit
1932a08858
@ -12,6 +12,6 @@ docker create [OPTIONS] IMAGE [COMMAND] [ARG...]
|
|||||||
|
|
||||||
إنشاء وبدء حاوية
|
إنشاء وبدء حاوية
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
$ docker create -t -i fedora bash
|
$ docker create -t -i fedora bash
|
||||||
```
|
```
|
@ -23,7 +23,7 @@ localeTitle: Foreach حلقة
|
|||||||
|
|
||||||
### انتاج:
|
### انتاج:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
> We have Jim
|
> We have Jim
|
||||||
> We have Jane
|
> We have Jane
|
||||||
> We have Jack
|
> We have Jack
|
||||||
|
@ -6,7 +6,7 @@ localeTitle: تثبيت Go في Arch Linux باستخدام pacman
|
|||||||
|
|
||||||
استخدام Arc Linux Linux Manager (pacman) هو أسهل طريقة لتثبيت Go. استنادًا إلى فلسفة Arch Linux في تقديم إصدارات برامج جديدة بسرعة ، ستحصل على إصدار حالي جدًا من الانتقال. قبل أن تتمكن من تثبيت حزمة الانتقال ، يجب عليك تحديث النظام.
|
استخدام Arc Linux Linux Manager (pacman) هو أسهل طريقة لتثبيت Go. استنادًا إلى فلسفة Arch Linux في تقديم إصدارات برامج جديدة بسرعة ، ستحصل على إصدار حالي جدًا من الانتقال. قبل أن تتمكن من تثبيت حزمة الانتقال ، يجب عليك تحديث النظام.
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
$ sudo pacman -Syu
|
$ sudo pacman -Syu
|
||||||
$ sudo pacman -S go
|
$ sudo pacman -S go
|
||||||
```
|
```
|
||||||
@ -15,7 +15,7 @@ $ sudo pacman -S go
|
|||||||
|
|
||||||
للتحقق مما إذا تم تشغيل go بنجاح ، استخدم:
|
للتحقق مما إذا تم تشغيل go بنجاح ، استخدم:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
$ go version
|
$ go version
|
||||||
> go version go2.11.1 linux/amd64
|
> go version go2.11.1 linux/amd64
|
||||||
```
|
```
|
||||||
|
@ -12,7 +12,7 @@ localeTitle: تثبيت Go في نظام التشغيل Mac OS X باستخدا
|
|||||||
|
|
||||||
للتحقق مما إذا كان قد تم تركيب go بنجاح ، افتح الجهاز الخاص بك واستخدم:
|
للتحقق مما إذا كان قد تم تركيب go بنجاح ، افتح الجهاز الخاص بك واستخدم:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
$ go version
|
$ go version
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ $ export PATH=$PATH:/usr/local/go/bin
|
|||||||
|
|
||||||
للتحقق مما إذا تم تشغيل go بنجاح ، استخدم:
|
للتحقق مما إذا تم تشغيل go بنجاح ، استخدم:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
$ go version
|
$ go version
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ localeTitle: تثبيت Go في Ubuntu باستخدام apt-get
|
|||||||
|
|
||||||
> حتى كتابة هذه السطور ، فإن نسخة Ubuntu Xenial من go هي 1.6.1 ، بينما الأحدث إصدار مستقر هو 1.9.1
|
> حتى كتابة هذه السطور ، فإن نسخة Ubuntu Xenial من go هي 1.6.1 ، بينما الأحدث إصدار مستقر هو 1.9.1
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
$ sudo apt-get update
|
$ sudo apt-get update
|
||||||
$ sudo apt-get install golang-go
|
$ sudo apt-get install golang-go
|
||||||
```
|
```
|
||||||
@ -17,7 +17,7 @@ $ sudo apt-get install golang-go
|
|||||||
|
|
||||||
للتحقق مما إذا تم تشغيل go بنجاح ، استخدم:
|
للتحقق مما إذا تم تشغيل go بنجاح ، استخدم:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
$ go version
|
$ go version
|
||||||
> go version go1.9.1 linux/amd64
|
> go version go1.9.1 linux/amd64
|
||||||
```
|
```
|
||||||
|
@ -10,7 +10,7 @@ localeTitle: تثبيت Go في Ubuntu باستخدام tarball
|
|||||||
|
|
||||||
قبل المتابعة تأكد من معرفة ما إذا كان النظام الخاص بك هو 32 أو 64 بت. إذا كنت لا تعرف ، فقم بتشغيل الأمر التالي لمعرفة ما يلي:
|
قبل المتابعة تأكد من معرفة ما إذا كان النظام الخاص بك هو 32 أو 64 بت. إذا كنت لا تعرف ، فقم بتشغيل الأمر التالي لمعرفة ما يلي:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
$ lscpu | grep Architecture
|
$ lscpu | grep Architecture
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ $ export PATH=$PATH:/usr/local/go/bin
|
|||||||
|
|
||||||
للتحقق مما إذا تم تشغيل go بنجاح ، استخدم:
|
للتحقق مما إذا تم تشغيل go بنجاح ، استخدم:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
$ go version
|
$ go version
|
||||||
> go version go1.9.1 linux/amd64
|
> go version go1.9.1 linux/amd64
|
||||||
```
|
```
|
||||||
|
@ -10,7 +10,7 @@ localeTitle: إعداد مستودعات Yum في RedHat / CentOS Linux
|
|||||||
|
|
||||||
الخطوة 1: التحقق من وجود مستودعات حالية أم لا.
|
الخطوة 1: التحقق من وجود مستودعات حالية أم لا.
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
#yum repolist
|
#yum repolist
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -18,19 +18,19 @@ localeTitle: إعداد مستودعات Yum في RedHat / CentOS Linux
|
|||||||
|
|
||||||
الخطوة 2: تغيير الدليل إلى
|
الخطوة 2: تغيير الدليل إلى
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
#cd /etc/yum.repos.d
|
#cd /etc/yum.repos.d
|
||||||
```
|
```
|
||||||
|
|
||||||
الخطوة 3: إنشاء ملف جديد
|
الخطوة 3: إنشاء ملف جديد
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
#vim myrepo.repo
|
#vim myrepo.repo
|
||||||
```
|
```
|
||||||
|
|
||||||
الخطوة 4: اكتب الأسطر التالية في الملف
|
الخطوة 4: اكتب الأسطر التالية في الملف
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
[file-name]
|
[file-name]
|
||||||
name=filename
|
name=filename
|
||||||
baseurl="location of yum repositories"
|
baseurl="location of yum repositories"
|
||||||
@ -41,6 +41,6 @@ gpgcheck=0
|
|||||||
|
|
||||||
الخطوة 6: كرر الخطوة 1
|
الخطوة 6: كرر الخطوة 1
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
You Will find repositories
|
You Will find repositories
|
||||||
```
|
```
|
@ -49,7 +49,7 @@ Examples of this include:
|
|||||||
|
|
||||||
### Step 1 - Generate an SSH authentication-key file
|
### Step 1 - Generate an SSH authentication-key file
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
[user@server1 ~]$ ssh-keygen
|
[user@server1 ~]$ ssh-keygen
|
||||||
```
|
```
|
||||||
When you are prompted for a passphrase, leave it blank
|
When you are prompted for a passphrase, leave it blank
|
||||||
@ -58,25 +58,25 @@ By default the key files should be stored in `/home/user/.ssh/`
|
|||||||
|
|
||||||
### Step 2 - Copy the public part of the key to other servers
|
### Step 2 - Copy the public part of the key to other servers
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
[user@server1 ~]$ ssh-copy-id -i ~/.ssh/id_rsa.pub user@server2
|
[user@server1 ~]$ ssh-copy-id -i ~/.ssh/id_rsa.pub user@server2
|
||||||
```
|
```
|
||||||
|
|
||||||
If the server is not installed with openssh-clients you can copy the authentication key with the command:
|
If the server is not installed with openssh-clients you can copy the authentication key with the command:
|
||||||
```sh
|
```shell
|
||||||
[user@server1 ~]$ cat ~/.ssh/id_rsa.pub | ssh user@server2 "cat >> ~/.ssh/authorized_keys"
|
[user@server1 ~]$ cat ~/.ssh/id_rsa.pub | ssh user@server2 "cat >> ~/.ssh/authorized_keys"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Step 3 - Verification
|
### Step 3 - Verification
|
||||||
Attempt to connect to the other servers va SSH
|
Attempt to connect to the other servers va SSH
|
||||||
```sh
|
```shell
|
||||||
[user@server1 ~]$ ssh user@server2
|
[user@server1 ~]$ ssh user@server2
|
||||||
```
|
```
|
||||||
|
|
||||||
If access is denied, it is likely a permission error on the .ssh directory.
|
If access is denied, it is likely a permission error on the .ssh directory.
|
||||||
|
|
||||||
Check/change the permissions on both the local and remote user's files:
|
Check/change the permissions on both the local and remote user's files:
|
||||||
```sh
|
```shell
|
||||||
chmod 600 ~/.ssh/authorized_keys
|
chmod 600 ~/.ssh/authorized_keys
|
||||||
chmod 700 ~/.ssh/
|
chmod 700 ~/.ssh/
|
||||||
```
|
```
|
||||||
|
@ -129,7 +129,7 @@ int main() {
|
|||||||
```
|
```
|
||||||
|
|
||||||
#OUTPUT
|
#OUTPUT
|
||||||
```sh
|
```shell
|
||||||
enter integer value
|
enter integer value
|
||||||
1
|
1
|
||||||
enter float value
|
enter float value
|
||||||
|
@ -97,7 +97,12 @@ Example: `history`
|
|||||||
|
|
||||||
28. **locate**
|
28. **locate**
|
||||||
- Used to locate a file in the system
|
- Used to locate a file in the system
|
||||||
Example: `locate sample.txt`
|
Example:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
locate sample.txt
|
||||||
|
/home/rajasimha/Desktop/sample.txt
|
||||||
|
```
|
||||||
|
|
||||||
### Useful Resources for Practice:
|
### Useful Resources for Practice:
|
||||||
- [JSLinux](https://bellard.org/jslinux/vm.html?url=https://bellard.org/jslinux/buildroot-x86.cfg): Run the terminal inside your browser. Great for practice.
|
- [JSLinux](https://bellard.org/jslinux/vm.html?url=https://bellard.org/jslinux/buildroot-x86.cfg): Run the terminal inside your browser. Great for practice.
|
||||||
|
@ -49,12 +49,12 @@ Start by adding the library to the project.
|
|||||||
|
|
||||||
With npm by issuing the command:
|
With npm by issuing the command:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
npm install --save redux-saga
|
npm install --save redux-saga
|
||||||
```
|
```
|
||||||
Or with yarn:
|
Or with yarn:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
yarn add redux-saga
|
yarn add redux-saga
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ It's based on the principle that a [Node.js](https://nodejs.org/) application is
|
|||||||
Assuming that all is setup and working correctly there are some packages that need to be added in order for Redux work with React.
|
Assuming that all is setup and working correctly there are some packages that need to be added in order for Redux work with React.
|
||||||
|
|
||||||
Open a terminal inside the project folder that was created and issue the following command
|
Open a terminal inside the project folder that was created and issue the following command
|
||||||
```sh
|
```shell
|
||||||
npm install --save react react react-dom react-redux react-router redux
|
npm install --save react react react-dom react-redux react-router redux
|
||||||
```
|
```
|
||||||
What the command above does is install the packages locally and add a reference to the the package.json file under dependencies.
|
What the command above does is install the packages locally and add a reference to the the package.json file under dependencies.
|
||||||
|
@ -24,7 +24,7 @@ foreach (element in iterable-item)
|
|||||||
|
|
||||||
### Saída:
|
### Saída:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
> We have Jim
|
> We have Jim
|
||||||
> We have Jane
|
> We have Jane
|
||||||
> We have Jack
|
> We have Jack
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
title: Hello World
|
title: Hello World
|
||||||
localeTitle: Olá Mundo
|
localeTitle: Olá Mundo
|
||||||
---
|
---
|
||||||
|
# Olá Mundo
|
||||||
|
|
||||||
Para escrever algum texto no console, usamos o `Console.WriteLine()` . Este método usa uma string como entrada.
|
Para escrever algum texto no console, usamos o `Console.WriteLine()` . Este método usa uma string como entrada.
|
||||||
|
|
||||||
@ -28,7 +29,7 @@ using System;
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Saída:
|
## Saída:
|
||||||
## Saída:
|
```shell
|
||||||
```sh
|
```sh
|
||||||
> Hello World!
|
> Hello World!
|
||||||
> Press any key to exit.
|
> Press any key to exit.
|
||||||
|
@ -24,7 +24,7 @@ foreach (element in iterable-item)
|
|||||||
|
|
||||||
### Salida:
|
### Salida:
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
> We have Jim
|
> We have Jim
|
||||||
> We have Jane
|
> We have Jane
|
||||||
> We have Jack
|
> We have Jack
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
title: Hello World
|
title: Hello World
|
||||||
localeTitle: Hola Mundo
|
localeTitle: Hola Mundo
|
||||||
---
|
---
|
||||||
|
# Hola Mundo
|
||||||
|
|
||||||
Para escribir un texto en la consola usamos `Console.WriteLine()` . Este método toma una cadena como entrada.
|
Para escribir un texto en la consola usamos `Console.WriteLine()` . Este método toma una cadena como entrada.
|
||||||
|
|
||||||
@ -28,7 +29,7 @@ using System;
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Salida:
|
## Salida:
|
||||||
## Salida:
|
```shell
|
||||||
```sh
|
```sh
|
||||||
> Hello World!
|
> Hello World!
|
||||||
> Press any key to exit.
|
> Press any key to exit.
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
---
|
---
|
||||||
title: Installing Rust
|
title: Installing Rust
|
||||||
localeTitle: Instalando óxido
|
localeTitle: Instalando óxido
|
||||||
---
|
---
|
||||||
|
# Instalando óxido
|
||||||
|
|
||||||
El uso de `rustup` es preferido para la instalación de Rust. `rustup` instala y administra Rust para su sistema.
|
El uso de `rustup` es preferido para la instalación de Rust. `rustup` instala y administra Rust para su sistema.
|
||||||
|
|
||||||
@ -12,7 +13,7 @@ Visite el [sitio web de rustup](https://rustup.rs) y descargue el `rustup-init.e
|
|||||||
## Instalación de Rust en otros sistemas operativos (Mac OS X, Linux, BSD, Unix)
|
## Instalación de Rust en otros sistemas operativos (Mac OS X, Linux, BSD, Unix)
|
||||||
|
|
||||||
Abre tu terminal y escribe este comando:
|
Abre tu terminal y escribe este comando:
|
||||||
Abre tu terminal y escribe este comando:
|
```shell
|
||||||
```sh
|
```sh
|
||||||
curl https://sh.rustup.rs -sSf | sh
|
curl https://sh.rustup.rs -sSf | sh
|
||||||
```
|
```
|
||||||
@ -22,7 +23,7 @@ Esto buscará el instalador de `rustup` y, a su vez, `rustup` todo lo que necesi
|
|||||||
# Verificando instalación
|
# Verificando instalación
|
||||||
|
|
||||||
La instalación de `rustup` instalará todas las cosas relevantes para la oxidación, pero lo más importante es que se instale el compilador y el administrador de paquetes. Para verificar que todo está instalado, ejecute este comando:
|
La instalación de `rustup` instalará todas las cosas relevantes para la oxidación, pero lo más importante es que se instale el compilador y el administrador de paquetes. Para verificar que todo está instalado, ejecute este comando:
|
||||||
La instalación de `rustup` instalará todas las cosas relevantes para la oxidación, pero lo más importante es que se instale el compilador y el administrador de paquetes. Para verificar que todo está instalado, ejecute este comando:
|
```shell
|
||||||
```sh
|
```sh
|
||||||
cargo version
|
cargo version
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user