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 =
 
 
 
<pre>
 
<pre>
  
Line 10: Line 8:
 
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
 
* 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
 
 
 
== Files ==
 
* rm – Remove Files
 
 
 
* mv – Move Files
 
 
 
* trash from command line not so easy may be hidden /home/pi/.local/share/Trash  may be a hint.
 
 
== Note ==
 
<pre>
 
 
 
mc – A Full File Manager
 
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>
 
</pre>
  
= File Related =
 
 
== Editing ==
 
* 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 ==
+
or just edit file
  
=== interfaces ===
+
/etc/default/keyboard
  
<pre>
+
and make it
 
 
#  sudo leafpad  /etc/network/interfaces
 
 
 
</pre>
 
 
 
=== for Keyboard ===
 
 
 
<pre>
 
#  sudo leafpad  /etc/default/keyboard
 
  
 
XKBLAYOUT="us"
 
XKBLAYOUT="us"
</pre>
 
 
== for WiFi wpa_supplicant.conf ==
 
 
<pre>
 
 
# for info
 
sudo iwlist wlan0 scan
 
 
</pre>
 
 
Go to the bottom of the file and add the following:
 
 
<pre>
 
#  sudo leafpad /etc/wpa_supplicant/wpa_supplicant.conf
 
# at bottom of file
 
# ok to have 2
 
 
network={
 
    ssid="The_ESSID_from_earlier"
 
    psk="Your_wifi_password"
 
 
network={
 
    ssid="The_ESSID_from_earlier"
 
    psk="Your_wifi_password"
 
}
 
 
</pre>
 
 
 
  
[[Category:Arduino/RaspberryPi]]
+
sudo leafpad /etc/default/keyboard may be protected try with sudo no file is empty

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)