more /etc/issue
ps -p $$
whoami
uptime
top
cat /etc/issue
sudo shutdown -h now
sudo reboot
Create Empty File:
touch hello.txt
Open file:
nano hello.txt
Store text to file:
echo 'Hello World!' > hello.txt
Look at content:
cat hello.txt
Display text on screen:
echo 'Hello!'
Remove File:
rm hello.txt
Remove directory:
rm -rfi stuff
rmdir stuff
Copy and rename Files:
cp source.txt dest.txt
Select multiple files:
the "?" replace 1 single char: file helo?.txt
the "*" replace a number of char: file *.txt
Software management:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install .....
sudo apt-get remove ...
sudo -apt-get purge ...
sudo apt-get autoremove
sudo apt-get clean
See what installed:
dpkg --list
Change Hostname and pass
sudo echo 'newHost' > /etc/hostname
Copy file from PC to BBB
scp LEDServer.py space@192.168.7.1:/home/space/
Copy folder
scp -r ....
save: :w
save and exit: :wq
exit: :q
force: ! (example :w! :q!)
vertical split: open a document and then type :vsplit /path-to-document/document and this will open the specified document and split the screen so you can see both documents.
copy: y
copy a line: yy
paste: p
cut: d
cut a line: dd
insmod hello.ko
lsmod | grep hello
modinfo hello.ko
rmmod hello.ko
tail -f kern.log
dmesg | grep -i taint
cat /proc/sys/kernel/tainted
cd /proc
cat modules | grep hello
Direct access to custom parameter state
cd /sys/module
ls -l |grep hello
ca hello/
ls
cat version
cat taint
Custom Parameter view
cd parameters/
ls -l
cat name
1. Press "Ctrl-A" on the keyboard and press "Esc."
2. Press the "Up" and "Down" arrow keys or the "PgUp" and "PgDn" keys to scroll through previous output.
3. Press "Esc" to exit scrollback mode.
Err:25 http://at.archive.ubuntu.com/ubuntu xenial-backports/main armhf Packages
Your approach is not wrong. The only problem is that the .deb package files for architectures different from amd64 and i386 are not available in the standard archives, but on a special repository server.
Try the following modification in the sources.list file(s):
Each line such as
deb http://at.archive.ubuntu.com/ubuntu/ xenial main universe
has to be converted into these two lines:
deb [arch=amd64,i386] http://at.archive.ubuntu.com/ubuntu/ xenial main universe
deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports xenial main universe
(similar for security.ubuntu.com, also here the armhf .deb files need the ports.ubuntu.com server)