LinuxNavigatingFiles Flashcards
(50 cards)
What file stores user account information in Linux?
/etc/passwd
What file stores hashed passwords for users?
/etc/shadow
What command shows the currently logged-in user?
whoami
What command shows all users currently logged in?
who or w
What does the ‘su’ command do?
Switches user (defaults to root if no username is given)
What does ‘sudo’ allow you to do?
Run a command with superuser (root) privileges
How do you return to a previous user or session?
exit
What is the root directory in Linux?
/
What directory contains user personal folders?
/home
Where are configuration files stored?
/etc
What directory contains essential user commands?
/bin
Where is user-installed software and libraries located?
/usr
What directory contains logs and mail?
/var
Which directory is used for temporary files?
/tmp
What is the home directory for the root user?
/root
Where are device files located?
/dev
Which directory contains virtual system information like CPU?
/proc
What command shows the current directory?
pwd
What command changes to the /etc directory?
cd /etc
What does ‘cd ~’ do?
Goes to the home directory
How do you move up one level in the directory?
cd ..
What does ‘ls’ do?
Lists files in a directory
What does ‘ls -l’ show?
Lists files with details
What does ‘ls -a’ show?
Lists all files including hidden ones