Interview Practice Questions

Q1: What is the linux command to create custom shortcuts for your regularly used commands?
alias
Q2: What is the linux command to view a command-line calendar?
cal
Q3: What is the linux command to display file contents on the terminal?
cat
Q4: What is the linux command to navigate through directories?
cd
Q5: What is the linux command to change file permissions?
chmod
Q6: What is the linux command for granting ownership of files or folders?
chown
Q7: What is the linux command to clear the terminal display?
clear
Q8: What is the linux command to allow you to check if two files are identical?
cmp
Q9: What is the linux command to combine the functionality of diff and cmp?
comm
Q10: What is the linux command with similar usage as mv but for copying files in Linux?
cp
Q11: What is the linux command to transfer data from or to a server?
curl -O http://example.com/file.zip
Q12: What is the linux command to create bootable USB sticks?
dd
Q13: What is the linux command to display disk filesystem information?
df
Q14: What is the linux command to find the difference between two files?
diff
Q15: What is the linux command to print any text that follows the command?
echo
Q16: What is the linux command to export environment variables in Linux?
export
Q17: What is the linux command to transfer files using File Transfer Protocol?
ftp
Q18: What is the linux command to search for a string within an output?
grep
Q19: What is the linux command to return the specified number of lines from the top?
head
Q20: What is the linux command to display network interfaces and IP addresses?
ifconfig
Q21: What is the base firewall command for Linux for all other firewall utilities to interface with?
iptables
Q22: What is the linux command to kill active processes by process ID or name?
kill and killall
Q23: What is the linux command to linux command to display paged outputs in the terminal?
less
Q24: What is the linux command to create symbolic links (shortcuts) to other files?
ln
Q25: What is the linux command to list directories?
ls
Q26: What is the linux command to access manual pages for all Linux commands?
man
Q27: What is the linux command to command used to create directories in Linux?
mkdir
Q28: What is the linux command to mount file systems in Linux?
mount
Q29: What is the linux command to move or rename files in Linux?
mv
Q30: What is the linux command to create or update passwords for existing users?
passwd
Q31: What is the linux command to display active processes?
ps
Q32: What is the linux command to print working directory command in Linux?
pwd
Q33: What is the linux command to delete files or directories?
rm
Q34: What is the linux command to sync files and directories?
rsync
Q35: What is the linux command to securely copy files over SSH?
scp
Q36: What is the linux command to start and stop services?
service
Q37: What is the linux command to securely transfer files using SSH File Transfer Protocol?
sftp user@remote:/path/to/file
Q38: What is the linux command to sort the content of a file while outputting?
sort
Q39: What is the linux command forSecure Shell command in Linux?
ssh
Q40: What is the linux command to escalate privileges in Linux?
sudo
Q41: What is the linux command to return the specified number of lines from the bottom?
tail
Q42: What is the linux command to extract and compress files in linux?
tar
Q43: What is the linux command to view active processes live with their system usage?
top
Q44: What is the linux command to create blank/empty files?
touch
Q45: What is the linux command to trace all the network hops to reach the destination?
traceroute
Q46: What is the linux command to configure the Firewall?
ufw
Q47: What is the linux command to get basic information about the OS?
uname
Q48: What is the linux command to unzip files in Linux?
unzip
Q49: What is the linux command to add a new user or change existing user data?
useradd and usermod
Q50: What is the linux command to directly download files from the internet?
wget http://example.com/file.zip
Q51: What is the linux command to find what a command is used for?
whatis
Q52: What is the linux command to locate the binary?
whereis
Q53: What is the linux command to get the active username?
whoami
Q54: What is the linux command to zip files in Linux?
zip
Q55: What is the linux command to run the package manager on the Arch and Arch-based distributions?
pacman
Q56: What is the linux command to run the package manager on the Debian and Debian-based distributions like Ubuntu?
apt
Q57: What is the linux command to run the package manager on the ---- distribution?
rpm
Q58: What is the linux command to run the package manager on the Red Hat, Fedora, and Centos distributions?
yum