Comments on: 42 of the Most Useful Raspberry Pi Commands http://www.circuitbasics.com/useful-raspberry-pi-commands/ Raspberry Pi, Arduino, and DIY Electronics Projects and Tutorials Mon, 22 Jan 2018 02:48:22 +0000 hourly 1 By: DIPEN http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-17529 Thu, 11 Jan 2018 09:01:15 +0000 http://www.circuitbasics.com/?p=312#comment-17529 HEY I HAVE N-COPUTING WITH RASPBERRY PI OS OK

IN RASPBERRY OS USER WILL CRASH SO HOW CAN I RESET THAT OS

WHAT IS THE RESET COMMAND OF RASPBERRY OS

]]>
By: Janarthanan http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-6907 Fri, 01 Sep 2017 07:18:32 +0000 http://www.circuitbasics.com/?p=312#comment-6907 Hai can you please help
my raspberry pi3-b was working for wifi. But suddenly stoped working one I was connecting touch screen display. I have removed the display.Even now it is not working. When I run iwconfig both l0 and eth0 says no wireless extension. When I run ipconfig, eth0 shows some ip adresses ,but l0 is local loop back. How to activate Bluetooth and wifi

Ye

]]>
By: graeme http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-5490 Fri, 04 Aug 2017 15:02:24 +0000 http://www.circuitbasics.com/?p=312#comment-5490 Please support those like me who hate using expensive colour cartridges on a printer.
It would be useful to have two options available for the pdf selection;
– Coloured PDF [copy of the webdisplay]
– B & W pdf [to save printer ink]
A clear white background is best for the text and also in pictures such as the login prompt screen shots. The grey background uses masses of ink and printing time.
Visible weblinks would also be nice, but they can be got from the web version.

]]>
By: Circuit Basics http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2151 Fri, 24 Feb 2017 16:34:06 +0000 http://www.circuitbasics.com/?p=312#comment-2151 Yes, there should be two dashes ( – ) before “get”… The formatting made it look like there was only one. I changed it to make it clearer. Thanks for bringing that up.

]]>
By: M Comer http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2139 Mon, 20 Feb 2017 18:03:35 +0000 http://www.circuitbasics.com/?p=312#comment-2139 I was just about to say the same thing. 🙂

]]>
By: Keith http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2086 Sun, 29 Jan 2017 20:29:17 +0000 http://www.circuitbasics.com/?p=312#comment-2086 scp is missing destination directory, no? Or does it default to .?

]]>
By: Rixon http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2084 Sun, 29 Jan 2017 14:05:13 +0000 http://www.circuitbasics.com/?p=312#comment-2084 apt-get update does not “update your version of raspbian” – it updates the list of available packages in your chosen repositories.

]]>
By: Neil Ferreri http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2083 Sun, 29 Jan 2017 05:14:31 +0000 http://www.circuitbasics.com/?p=312#comment-2083 Hmmm…There should be two dashes before get.

]]>
By: Neil Ferreri http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2082 Sun, 29 Jan 2017 05:11:57 +0000 http://www.circuitbasics.com/?p=312#comment-2082 “dpkg -get-selections” should be “dpkg –get-selections”

]]>
By: Eric Sunshine http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2081 Sun, 29 Jan 2017 01:47:54 +0000 http://www.circuitbasics.com/?p=312#comment-2081 Since Raspian is a Debian-based distro, !! is useful, as in:

You> shutdown -h now
Pi> no
You> sudo !!
Pi> sudo shutdown -h now

It’s probably got a name, but is often called “plingpling”.

Saves a lot of irritation.

]]>
By: Hank Barta http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2079 Sat, 28 Jan 2017 21:20:05 +0000 http://www.circuitbasics.com/?p=312#comment-2079 IMO ‘passwd’ should be the first command on the list. Keeping the default password on a well known account name is a security hole you could drive a truck through.

As far as the network question, it depends. For Ethernet and most home LANs just connecting a cable should do it. With WiFi he user needs to select the right network from the icon/drop down in the upper right corner and then enter the password. If the WiFi drop down does not list any WiFi access points, the adapter is not working out of the box and more work is required.

]]>
By: Mark Gowdy http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2077 Sat, 28 Jan 2017 12:03:30 +0000 http://www.circuitbasics.com/?p=312#comment-2077 Ctrl-r : Allows you to “Search your command history.” One of the most useful things that I use all the time.

]]>
By: Danny Sauer http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2076 Sat, 28 Jan 2017 01:55:59 +0000 http://www.circuitbasics.com/?p=312#comment-2076 Nope; reboot is almost always either a link or a copy of shutdown, and the code path is the same for either “-r” or for “called as reboot.”

]]>
By: Danny Sauer http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2075 Sat, 28 Jan 2017 01:37:29 +0000 http://www.circuitbasics.com/?p=312#comment-2075 Seconded. Su is a suid program which starts a shell as a specific user after sanitizing the environment. Sudo is a suid program which runs a commands with another user’s permissions after sanitizing the environment. Chaining both together is what sometime does when they didn’t know how the tools work; it’s like putting your car on a trailer, pulling the trailer to work with a truck, then parking the car. Just take one vehicle, instead of bringing the limitations of both. 🙂

As a rule, use “sudo -i” if possible. There are more complete explanations of why all over the Internet; this post is already long enough without adding that rant as well…

]]>
By: tux http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2074 Fri, 27 Jan 2017 22:16:05 +0000 http://www.circuitbasics.com/?p=312#comment-2074 cp -r sourcedir destdir
Lookup ‘useradd’ and ‘passwd’ – you’ll want to add the user to some groups too.

Raspbian will get an ip address if you plug in a working cable. Test with something else.

]]>
By: tux http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2073 Fri, 27 Jan 2017 22:12:28 +0000 http://www.circuitbasics.com/?p=312#comment-2073 Sudo -s is probably preferable to sudo su, as you will keep ‘your’ environment. (For a better explanation look it up)

Apt-get update – this checks software repoisitories for available upgrades
Apt-get upgrade – will perform the upgrades found from above.
This is crucially different to article as apt-get update is updating nothing but a list of available software.

Ifconfig still works but is deprecated, ip addr has replaced it.

Generally, if you need help with a command use man cmd, e.g ”man cp”. Press q to get back to prompt, arrows and space to navigate.

]]>
By: Gene B http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-2019 Wed, 04 Jan 2017 15:58:59 +0000 http://www.circuitbasics.com/?p=312#comment-2019 Im trying to pair 2 Raspberry Pi together and utilize the CPU for a PS3 gaming console. Can anyone help?

]]>
By: Anonymous http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1996 Tue, 27 Dec 2016 11:07:02 +0000 http://www.circuitbasics.com/?p=312#comment-1996 4

]]>
By: Mohamed El Omari http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1994 Mon, 26 Dec 2016 19:09:05 +0000 http://www.circuitbasics.com/?p=312#comment-1994 Oussama Farhat hakha khodha hhhhh

]]>
By: lee http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1955 Thu, 15 Dec 2016 09:08:22 +0000 http://www.circuitbasics.com/?p=312#comment-1955 my man lee

]]>
By: Henk Stek http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1924 Tue, 29 Nov 2016 10:27:25 +0000 http://www.circuitbasics.com/?p=312#comment-1924 Missing ‘history’, which I frequently use. Or just ‘his’ followed by the Tab-key. Next choose your command in the list that comes on the screen, type ‘!’ followed by the number of the choosen command. There you go

]]>
By: Nahum Rozental http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1773 Mon, 17 Oct 2016 13:49:51 +0000 http://www.circuitbasics.com/?p=312#comment-1773 The article is excellent. Many thanks.

]]>
By: omkar http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1769 Mon, 17 Oct 2016 06:07:19 +0000 http://www.circuitbasics.com/?p=312#comment-1769 Useful commands

]]>
By: Bateleur http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1655 Mon, 19 Sep 2016 16:23:27 +0000 http://www.circuitbasics.com/?p=312#comment-1655 I learned them in 1 hr 29 minutes and 59 seconds

]]>
By: Kim-Siong Wong http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1627 Sat, 10 Sep 2016 11:00:56 +0000 http://www.circuitbasics.com/?p=312#comment-1627 Great resource. Very helpful for those who are new to Linux and RaPi

]]>
By: Karthikeyan http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1588 Sat, 27 Aug 2016 08:17:28 +0000 http://www.circuitbasics.com/?p=312#comment-1588 With in 1 hr 30 mints i learned these 42 cmds in Rasberry pi.. Thanks

]]>
By: A-Z http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1455 Tue, 26 Jul 2016 21:38:27 +0000 http://www.circuitbasics.com/?p=312#comment-1455 I only know of rotating the whole screen in config.txt. In that case add display_rotate=1 and also dedicate more gpu memory by adding gpu_mem=128 in /boot/config.txt. More info here: http://linux.tips/tutorials/raspberry-pi-how-to-rotate-monitor-screen-90-or-270-degrees

]]>
By: kkb http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1408 Wed, 13 Jul 2016 07:27:34 +0000 http://www.circuitbasics.com/?p=312#comment-1408 i have a doubt how to rotate the rows and columns in clockwise and anticlockwise direction(using python programming) in raspberry pi? it is possible in C language, so it is possible in raspbian?

]]>
By: Khaled Monsoor (@KhaledMonsoor) http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1378 Fri, 08 Jul 2016 14:37:23 +0000 http://www.circuitbasics.com/?p=312#comment-1378 Use “raspi-config” command. Then choose “INTERNATIONALISATION OPTIONS”, and then “keyboard layout” option to select your keyboard right.

]]>
By: Waleed Alrashed http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1271 Mon, 30 May 2016 04:03:40 +0000 http://www.circuitbasics.com/?p=312#comment-1271 thanks =D

]]>
By: J.C. Hobbs http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1189 Tue, 03 May 2016 17:43:52 +0000 http://www.circuitbasics.com/?p=312#comment-1189 The @ and a couple of other characters don’t work for my pi 3. Is there a patch to fix this? (American English, I suppose is the problem.)

]]>
By: LarryP http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1082 Tue, 15 Mar 2016 22:56:20 +0000 http://www.circuitbasics.com/?p=312#comment-1082 IMO that is not a bug, as you do not want a regular user account to have access to that. many denial of service thingies use that vulnerability to mess with web servers.

]]>
By: Vladimir http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-1034 Thu, 25 Feb 2016 13:45:11 +0000 http://www.circuitbasics.com/?p=312#comment-1034 Ping – there is bug in the Jessie (Feb.2016), insufficient rights. Fix: sudo chmod u+s /bin/ping

]]>
By: Dean Murray http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-998 Mon, 15 Feb 2016 07:17:22 +0000 http://www.circuitbasics.com/?p=312#comment-998 Nice Linux primer with some rpi flavour. If you are going to include up arrow for previous command then you just HAVE to include about tab completion. But I guess that will mess with your 42

]]>
By: ben http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-983 Sat, 13 Feb 2016 17:45:36 +0000 http://www.circuitbasics.com/?p=312#comment-983 Hi, instead of ‘sudo su’, I would prefer ‘sudo -s’ or ‘sudo -i’.

]]>
By: Jim http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-980 Sat, 13 Feb 2016 08:02:40 +0000 http://www.circuitbasics.com/?p=312#comment-980 If touch is used on an existing file, it updates the file’s modification time. The sure-fire way to create or empty a file is cat /dev/null > file.

]]>
By: Franco Lanza http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-916 Sun, 17 Jan 2016 20:43:35 +0000 http://www.circuitbasics.com/?p=312#comment-916 they are NOT “raspberry pi” commands. They are Linux and UNIX ( or at least GNU ) commands. Raspberry PI is HARDWARE, not SOFTWARE.

]]>
By: alex http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-888 Tue, 05 Jan 2016 17:24:07 +0000 http://www.circuitbasics.com/?p=312#comment-888 how to perform native build on raspberry pi?

]]>
By: joe http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-882 Sun, 03 Jan 2016 09:05:30 +0000 http://www.circuitbasics.com/?p=312#comment-882 excellent post sir….a great help to a recent new adopter. many thanks

]]>
By: Reckoner http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-853 Sun, 13 Dec 2015 22:43:53 +0000 http://www.circuitbasics.com/?p=312#comment-853 Thank you for taking the time to make this list. I’ve been scouring the internet and finally founds yours!

]]>
By: Patrick C http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-775 Fri, 06 Nov 2015 17:50:44 +0000 http://www.circuitbasics.com/?p=312#comment-775 I thought the difference between ‘shutdown -r now’ and ‘reboot’ is the fact that ‘reboot’ doesn’t do a complete shutdown while ‘shutdown -r now’ will. Sometimes you don’t need a complete shutdown and a reboot would be faster. Am I mistaken?

]]>
By: lee http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-773 Mon, 02 Nov 2015 22:22:24 +0000 http://www.circuitbasics.com/?p=312#comment-773 or sudo shutdown now

]]>
By: number http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-753 Sat, 10 Oct 2015 14:09:24 +0000 http://www.circuitbasics.com/?p=312#comment-753 great havent tried it yet

]]>
By: Raguvaran http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-649 Sat, 25 Jul 2015 13:33:09 +0000 http://www.circuitbasics.com/?p=312#comment-649 Nice sharing, I have few questions sir,
1. how to copy the directory from one path to another. And how to create the new user and to change password.
2. Internet is not connecting in my Raspberry Pi board. so what i should configure to connect LAN?
Thank you…

]]>
By: circuitbasics@gmail.com http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-135 Sat, 21 Mar 2015 09:18:57 +0000 http://www.circuitbasics.com/?p=312#comment-135 You’re right, I’ll change that to make it a bit more understandable. Thanks!

]]>
By: codeclarified http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-131 Fri, 20 Mar 2015 19:00:18 +0000 http://www.circuitbasics.com/?p=312#comment-131 A note on both the mv and cp command examples:
`mv ~/examplefile.txt /home/pi/`
99% of the time for a Pi user, this will do nothing. ~ is a placeholder for the current user’s home directory, if the user is logged into their Pi as the pi user (almost a certainty) – ~ and /home/pi are the same directory. Expanding the example, you have:
`mv /home/pi/examplefile.txt /home/pi/`

To move a file in the current working directory it would simply be:
`mv examplefile.txt /home/pi`

]]>
By: Jim http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-130 Fri, 20 Mar 2015 11:23:20 +0000 http://www.circuitbasics.com/?p=312#comment-130 A nice wee cheat sheet, thank you very much.
Also I like how it’s based on the number 42.

]]>
By: circuitbasics@gmail.com http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-129 Fri, 20 Mar 2015 08:52:57 +0000 http://www.circuitbasics.com/?p=312#comment-129 Thanks for the clarification, I have just updated the post…

]]>
By: Jim C http://www.circuitbasics.com/useful-raspberry-pi-commands/#comment-128 Fri, 20 Mar 2015 06:49:37 +0000 http://www.circuitbasics.com/?p=312#comment-128 Useful list, thanks. But ‘shutdown -r now’ will actually reboot your Pi, not shut it down. It should actually be ‘shutdown -h now’ for a system halt.
And you might like to add that ‘mv’ is how you rename files, as well as moving them.

]]>