basic shell commands - an incomplete list

Depending on the way one’s services are installed, the basic commands regarding them. After hunting around for the particular combinations that work with volumio, I thought I’d share them here with others:

Restart PHP

service php5-fpm restart

Nginx commands (does not function with ‘service’)
Nginx quit

nginx -squit

Nginx Start

nginx

(no arguments)
Nginx Stop

nginx -sstop

I will add to this list as I find more.

Good idea - thanks for starting the thread.

Services

You use the service command to interact with services, e.g. service mpd restart to restart the mpd (Music Player Daemon) service (surprisingly enough). Wondering what services are available? You can find the list like this:

ls /etc/init.d .

Services usually support most or all the following actions: start, stop, restart, status. There may be other actions for the service you’re looking at - find out what’s supported by running the script without the action, e.g.

service mpd

If you’re not sure what a service does, the first few lines of the script contain a description, e.g.

head -20 /etc/init.d/mpd

Cheers … JD

I have found that:

cat /proc/asound/card0/stream0 Gives quite informative output on capabilities of your USB connected DAC, as well as on currently active mode.

F.e.:

[code]root@volumio:~# cat /proc/asound/card0/stream0
Audiophilleo audiophilleo2 v1.29 SN00578 at usb-bcm2708_usb-1.2, high speed : USB Audio

Playback:
Status: Running
Interface = 2
Altset = 4
Packet Size = 600
Momentary freq = 96015 Hz (0xc.0078)
Feedback Format = 16.16
Interface 2
Altset 1
Format: S24_3LE
Channels: 2
Endpoint: 5 OUT (ASYNC)
Rates: 44100
Data packet interval: 1000 us
Interface 2
Altset 2
Format: S24_3LE
Channels: 2
Endpoint: 5 OUT (ASYNC)
Rates: 48000
Data packet interval: 1000 us
Interface 2
Altset 3
Format: S24_3LE
Channels: 2
Endpoint: 5 OUT (ASYNC)
Rates: 88200
Data packet interval: 1000 us
Interface 2
Altset 4
Format: S24_3LE
Channels: 2
Endpoint: 5 OUT (ASYNC)
Rates: 96000
Data packet interval: 1000 us
Interface 2
Altset 5
Format: S24_3LE
Channels: 2
Endpoint: 5 OUT (ASYNC)
Rates: 176400
Data packet interval: 1000 us
Interface 2
Altset 6
Format: S24_3LE
Channels: 2
Endpoint: 5 OUT (ASYNC)
Rates: 192000
Data packet interval: 1000 us
Interface 2
Altset 7
Format: S16_LE
Channels: 2
Endpoint: 5 OUT (ASYNC)
Rates: 44100
Data packet interval: 1000 us
Interface 2
Altset 8
Format: S16_LE
Channels: 2
Endpoint: 5 OUT (ASYNC)
Rates: 48000
Data packet interval: 1000 us
Interface 2
Altset 9
Format: S16_LE
Channels: 2
Endpoint: 5 OUT (ASYNC)
Rates: 44100
Data packet interval: 1000 us
Interface 2
Altset 10
Format: S16_LE
Channels: 2
Endpoint: 5 OUT (ASYNC)
Rates: 48000
Data packet interval: 1000 us[/code]or:

[code]root@volumio:~# cat /proc/asound/card0/stream0
Audio-gd Audio-gd at usb-bcm2708_usb-1.2, high speed : USB Audio

Playback:
Status: Running
Interface = 1
Altset = 2
Packet Size = 371
Momentary freq = 192031 Hz (0x18.0101)
Feedback Format = 16.16
Interface 1
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 4 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
Data packet interval: 500 us
Interface 1
Altset 2
Format: S24_3LE
Channels: 2
Endpoint: 4 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
Data packet interval: 250 us
Interface 1
Altset 3
Format: S32_LE
Channels: 2
Endpoint: 4 OUT (ASYNC)
Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
Data packet interval: 250 us[/code]