Questions & Answers

17
votes
1
answers
245
views

How to use screen or tmux for persistent sessions

My SSH session disconnects and kills my running processes. How can I keep them running?
omar_linux Platinum asked 1 week, 2 days ago
50
votes
1
answers
135
views

How to check system uptime and reboot history

How can I see how long my server has been running and when it was last rebooted?
security_pro Bronze asked 1 week, 2 days ago
50
votes
1
answers
439
views

How to install software from source on Linux

I need to install a program that is not available in the package manager. How do I compile from source?
hassan_ops Bronze asked 1 week, 2 days ago
11
votes
1
answers
1358
views

How to backup and restore PostgreSQL database

What is the command to backup and restore a PostgreSQL database?
linux_expert Bronze asked 1 week, 2 days ago
2
votes
1
answers
1536
views

How to create PostgreSQL database and user

I need to set up a new PostgreSQL database for my Django project.
ahmed_tech Platinum asked 1 week, 2 days ago
45
votes
1
answers
1479
views

How to configure Celery with Django

I need to run background tasks in Django. How do I set up Celery?
linux_expert Bronze asked 1 week, 2 days ago
31
votes
1
answers
1629
views

How to use Django signals

How can I run code automatically when a model is saved or deleted?
web_developer Platinum asked 1 week, 2 days ago
43
votes
1
answers
82
views

How to create Django forms

What is the difference between Form and ModelForm in Django?
noor_code Gold asked 1 week, 2 days ago
27
votes
1
answers
1588
views

How to create Django model relationships

How do I create ForeignKey, OneToOne, and ManyToMany relationships?
python_dev Platinum asked 1 week, 2 days ago
13
votes
1
answers
1836
views

How to create a class in Python

What is the proper way to define a class with methods and properties?
noor_code Gold asked 1 week, 2 days ago
11
votes
1
answers
712
views

How to read CSV files in Python

What is the best way to read and process CSV files?
hassan_ops Bronze asked 1 week, 2 days ago
28
votes
1
answers
1404
views

How to format strings in Python

What are the different ways to format strings in Python?
devops_guru Gold asked 1 week, 2 days ago
3
votes
1
answers
478
views

How to remove duplicates from a list in Python

I have a list with duplicate values. How do I remove them?
sysadmin Silver asked 1 week, 2 days ago
33
votes
1
answers
496
views

How to check if file exists in Python

I need to check if a file or directory exists before processing it.
youssef_net Platinum asked 1 week, 2 days ago
7
votes
1
answers
533
views

How to merge two dictionaries in Python

What is the cleanest way to combine two dictionaries?
web_developer Platinum asked 1 week, 2 days ago
30
votes
1
answers
1166
views

How to sort a list of dictionaries in Python

I have a list of dictionaries and want to sort by a specific key.
hassan_ops Bronze asked 1 week, 2 days ago
36
votes
1
answers
1676
views

How to iterate over dictionary in Python

What is the best way to loop through a dictionary keys and values?
security_pro Bronze asked 1 week, 2 days ago
50
votes
1
answers
1338
views

How to redirect output to file in bash

How do I save command output to a file? Also how to redirect errors?
hassan_ops Bronze asked 1 week, 2 days ago
39
votes
1
answers
378
views

How to check and free up RAM on Linux

My server is running slow. How do I check memory usage and free up RAM?
security_pro Bronze asked 1 week, 2 days ago
15
votes
1
answers
1835
views

How to mount and unmount drives on Linux

I connected a new drive. How do I mount it and access the files?
cloud_arch Platinum asked 1 week, 2 days ago