Questions & Answers

19
votes
1
answers
399
views

How to set environment variables permanently

How do I set environment variables that persist after reboot?
noor_code Gold asked 1 week, 2 days ago
49
votes
1
answers
1232
views

How to view and manage running processes

How do I see what processes are running and manage them?
omar_linux Platinum asked 1 week, 2 days ago
47
votes
1
answers
1240
views

How to find files by name on Linux

I need to search for files by name. What commands can I use?
fatima_dev Silver asked 1 week, 2 days ago
43
votes
1
answers
1300
views

How to copy files between servers using SCP

I need to transfer files from one server to another. How do I use scp?
db_admin Silver asked 1 week, 2 days ago
27
votes
1
answers
232
views

How to check open ports on Linux

How can I see which ports are open and listening on my server?
sysadmin Silver asked 1 week, 2 days ago
8
votes
1
answers
1104
views

How to create a new user on Linux

I need to add a new user with sudo privileges. What are the steps?
security_pro Bronze asked 1 week, 2 days ago
32
votes
1
answers
1415
views

How to check Linux kernel version

What command shows the Linux kernel version? I need to verify it for compatibility.
web_developer Platinum asked 1 week, 2 days ago
35
votes
1
answers
394
views

How to create REST API with Django REST Framework

I want to build a REST API for my Django models. How do I use Django REST Framework?
linux_expert Bronze asked 1 week, 2 days ago
41
votes
1
answers
1534
views

How to implement user authentication in Django

I need to add login, logout, and registration functionality to my Django app. What is the best approach?
fatima_dev Silver asked 1 week, 2 days ago
23
votes
1
answers
1257
views

How to send emails in Django

I need to send email notifications from my Django app. How do I configure and send emails?
db_admin Silver asked 1 week, 2 days ago
36
votes
1
answers
848
views

How to add pagination to Django views

I have a list view with hundreds of items. How do I add pagination to show only 10 items per page?
fatima_dev Silver asked 1 week, 2 days ago
12
votes
1
answers
824
views

How to create custom Django management commands

I need to create a custom command that I can run with manage.py. How do I create one?
python_dev Platinum asked 1 week, 2 days ago
35
votes
1
answers
312
views

How to use regular expressions in Python

I need to extract data from text using patterns. How do I use regex in Python?
noor_code Gold asked 1 week, 2 days ago
36
votes
1
answers
1565
views

How to work with environment variables in Python

How do I read environment variables in Python and set default values if they do not exist?
linux_expert Bronze asked 1 week, 2 days ago
38
votes
1
answers
1232
views

How to use context managers (with statement) in Python

I see "with" statements used in Python. What are context managers and how do I create my own?
db_admin Silver asked 1 week, 2 days ago
13
votes
1
answers
1668
views

How to read command line arguments in Python

How can I pass and read command line arguments in a Python script?
layla_web Bronze asked 1 week, 2 days ago
14
votes
1
answers
951
views

How to work with datetime in Python

Working with dates and times in Python is confusing. How do I parse, format, and manipulate dates?
fatima_dev Silver asked 1 week, 2 days ago
26
votes
1
answers
1308
views

How to use list comprehensions in Python

I keep seeing list comprehensions in Python code. Can you explain how to use them effectively?
db_admin Silver asked 1 week, 2 days ago
9
votes
1
answers
640
views

How to make HTTP requests in Python

What library should I use for making HTTP requests in Python and how do I use it?
layla_web Bronze asked 1 week, 2 days ago
8
votes
1
answers
610
views

How to read and write JSON files in Python

What is the best way to read JSON data from a file and write JSON to a file in Python?
devops_guru Gold asked 1 week, 2 days ago