{{Title|
title=Common {{project_name_long}} CLI Commands
}}
{{Header}}
{{#seo:
|description=Common {{project_name_short}} CLI Commands
|image=Cli1242345.png
}}
[[File:Cli1242345.png|thumb|200px]]
{{intro|
There are a number of common command line operations that are performed by users of all skill levels in the {{project_name_short}} environment. This wiki page is intended to serve as a quick and handy reference guide for locating these, but it is not a substitute for reading relevant wiki entries that provide detailed instructions for various activities. <ref>
This entry has been inspired by the relatively unknown <code>
{{project_name_short_lowercase}}</code> command, which already lists common {{project_name_short}} command line operations.
</ref> Additional, useful commands will be added here over time.
}}
'''Table:''' ''{{project_name_gateway_long}} Common Commands''
! scope="row"| Important Logs
| Not yet available in {{Kicksecure}}. This notice might be outdated.
* {{CodeSelect|code=
sudo tail -f /var/log/syslog
}}
* {{CodeSelect|code=
sudo sdwdate-log-viewer
}}
* {{CodeSelect|code=
tail -f /var/run/tor/log
}}
|-
! scope="row"| Nyx: Tor Command Line Monitor <ref>This is a Tor Controller which runs as a console application.</ref>
|
* Launch Nyx:
{{CodeSelect|code=
nyx
}}
|-
! scope="row"| systemcheck
|
Not yet available in {{Kicksecure}}. This notice might be outdated.
* General system check, Network Time Synchronization and Tor Connection Check:
{{CodeSelect|code=
systemcheck
}}
|-
! scope="row"| Time
|
* Report the date in UTC:
{{CodeSelect|code=
date -u
}}
* Manually set the system clock:
{{CodeSelect|code=
sudo date -s "17 FEB 2019 24:00:00" && sudo hwclock -w
}}
* Randomize the time: <ref>A non-zero exit codes signifies an error, while <code>0</code> means it succeeded.</ref> <ref>Also see:
{{CodeSelect|code=
man clock-random-manual-gui
}}
{{CodeSelect|code=
man clock-random-manual-cli
}}
</ref>
** <code>clock-random-manual-gui</code>: a randomized clock setting (in UTC) is entered via a GUI.
** <code>clock-random-manual-cli</code>: a randomized clock setting (in UTC) is entered on the command line. For example: {{CodeSelect|code=
echo "Wed Dec 04 06:20:13 UTC 2019" {{!}} /usr/bin/clock-random-manual-cli
}}
|-
! scope="row"| Tor
|
* Restart Network:
{{CodeSelect|code=
sudo service networking restart
}}
* Restart Tor:
{{CodeSelect|code=
sudo service tor restart
}}
* Stop Tor:
{{CodeSelect|code=
sudo systemctl stop tor@default
}}
* Check the Tor version:
{{CodeSelect|code=
anon-info
}}
* Check the Tor configuration:
{{CodeSelect|code=
anon-verify
}}
{{CodeSelect|code=
sudo -u debian-tor tor --verify-config
}}
|-
! scope="row"| Virtual Consoles
|
* Text console: Press <code>Alt + Crtl + F1</code>
** Additional text consoles: Press <code>Alt + Crtl + F2</code> or <code>F3</code> and so on.
* Graphical console: Press <code>Alt + Crtl + F7</code>
|-
! scope="row"| VM Operations
|
* Reboot:
{{CodeSelect|code=
sudo reboot
}}
* Power off:
{{CodeSelect|code=
sudo poweroff
}}
|-