---
title: "تشغيل أوامر خاصة (incognito) في Bash وZsh"
description: "يكفي أن تضعوا مسافة قبل الأمر كي لا يُحفظ في ~/.bash_history. مثال:  qrencode -o out.png \"Some secret text\""
canonical: https://oozou.com/til/run-incognito-private-commands-for-bash-and-zsh-112
locale: ar
date: 2020-12-08
topic: shell
---

# تشغيل أوامر خاصة (incognito) في Bash وZsh

> يكفي أن تضعوا مسافة قبل الأمر كي لا يُحفظ في ~/.bash_history. مثال:  qrencode -o out.png "Some secret text"

Published: 2020-12-08 · Topic: [shell](https://oozou.com/ar/til-topics/shell) ([markdown](https://oozou.com/ar/til-topics/shell.md))

# Bash

يكفي أن تضعوا مسافة قبل الأمر كي لا يُحفظ في `~/.bash\_history`. مثال: ` qrencode -o out.png "Some secret text"`

# Zsh

فعّلوا الخيار التالي لتتمكنوا من تشغيل أوامر خاصة بإضافة مسافة قبلها، ومنع حفظها في `~/.zsh\_history`.

```
setopt HIST_IGNORE_SPACE
```

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/ar/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
