Editing Linux Commands On Pi

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
= Make Sure You are Up to Date =
 
= Make Sure You are Up to Date =
 +
  
 
<pre>
 
<pre>
Line 10: Line 11:
 
sudo raspi-config    # still works as alternative to command line  
 
sudo raspi-config    # still works as alternative to command line  
  
</pre>
 
  
= Software install =
 
  
Use the gui app or at command line
 
  
* apt-get
+
</pre>
* pip
 
 
 
= Misc Commands =
 
 
 
 
 
*    ~  home directory
 
*    ./ current directory
 
*    ../ parent directory
 
 
 
* ls        list files, but may miss hidden ones then ???
 
* cd
 
 
 
* chmod  +x  filename      +x  make executable
 
* ps  -e      what is running ( -e all users??  without just current )
 
 
 
* top          info on running processes in a nano like window exit with ctrl c
 
* kill          end a process using pid from above
 
 
 
 
 
 
 
cp                copy files
 
 
 
 
 
 
 
 
 
 
 
 
 
== Directories ==
 
* mkdir            make directory
 
* rmdir – Remove Directories
 
  
 +
= File Related =
  
== Files ==
 
* rm – Remove Files
 
  
  
* mv – Move Files
 
  
 +
= Config Files =
  
* trash from command line not so easy may be hidden /home/pi/.local/share/Trash  may be a hint.
+
== interfaces ==
  
== Note ==
 
 
<pre>
 
<pre>
  
 +
#  sudo leafpad  /etc/network/interfaces
  
mc – A Full File Manager
+
</pre>
Midnight Commander is one of many fully featured file managers you can use from the Linux terminal. It isn’t installed by default on most distributions; here’s the command you’ll need to install it on Ubuntu:
 
  
sudo apt-get install mc
 
  
</pre>
 
  
= File Related =
+
== Keyboard ==
  
== Editing ==
+
or just edit file
* editing in gui leafpad file_name, or if protected sudo leafpad file_name
 
* editing with no gui use nano same as above but a bit clunky, ctrl prefix to commands
 
  
== Config Files ==
+
#  sudo leafpad  /etc/default/keyboard
  
=== interfaces ===
+
XKBLAYOUT="us"
  
<pre>
+
sudo leafpad /etc/default/keyboard may be protected try with sudo no file is empty
  
#  sudo leafpad  /etc/network/interfaces
+
== wpa_supplicant.conf ==
  
</pre>
 
 
=== for Keyboard ===
 
  
 
<pre>
 
<pre>
#  sudo leafpad  /etc/default/keyboard
 
  
XKBLAYOUT="us"
+
# for info
</pre>
 
  
== for WiFi wpa_supplicant.conf ==
+
sudo iwlist wlan0 scan
  
<pre>
+
then edit
  
# for info
+
sudo leafpad /etc/wpa_supplicant/wpa_supplicant.conf
sudo iwlist wlan0 scan
 
  
 
</pre>
 
</pre>
Line 119: Line 75:
  
 
</pre>
 
</pre>
 
 
 
[[Category:Arduino/RaspberryPi]]
 

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)