Debian FAQ

How to find program version How to check kernel version linux
How to stop/restart X Grub in Debian
How to change directory Live image password
How to send email from console How to delete file in linux
How to switch from X to Console How to switch from Console to X
How to check list of active connections


🔝


How to find program version in Debian

Run

dpkg -p program_name

🔝

How to check Debian kernel version

Run

uname -r

🔝

How to restart X-server

You can restart X-server (first switch to console by Ctrl + Atl + F1) by running

/etc/init.d/gdm restart

or

/etc/init.d/gdm3 restart

or

/etc/init.d/kdm restart

How to stop/restart X

Stop/Start X-server (first switch to console by Ctrl + Atl + F1) with

/etc/init.d/gdm stop

or

/etc/init.d/gdm3 stop

or

/etc/init.d/kdm stop

If you do not know which X server you are using you can try to brute force:

/etc/init.d/gdm stop /etc/init.d/gdm3 stop /etc/init.d/kdm stop /etc/init.d/xdm stop /etc/init.d/lightdm stop

How to start X server

Run

/etc/init.d/gdm start

or

/etc/init.d/gdm3 start

or

/etc/init.d/kdm start

Works with X-server gdm, gdm3 or kdm. If you have different X just type it 's name instead

🔝

Where to find GRUB in Debian

Either here /etc/default/grub or check scripts from folder /etc/grub.d

🔝

How to change folder in Debian

If this folder is a subfolder of your current one

cd folder_name

Or with full path from root

cd /subfolder/folder_name

🔝

User password in live usb

Try

live

worked 26.12.2014 for this image.

🔝

Send email in linux

To send email from terminal type

mail -s "Subject" user@domain.ru

If you need to send text file content

mail -s "Subject" user@domain.ru < /home/user/filename.txt

🔝

How to remove file in Linux

Run

rm file_name

🔝

How to switch from console to X

Run

Alt + F7

🔝

How to switch from X to console

Run

Ctrl + Alt + F1

🔝

How to get list of active connections in Linux

Run

netstat

Sources:
http://man7.org/linux/man-pages/man8/netstat.8.html
https://en.wikipedia.org/wiki/Netstat

Share in social media: