- Login into the right machine before attempting to answer the questions
- Read the questions atleast twice
- Understand the copy and paste shortcut between the question pane and the virtual machine as it varies due to OS
- Use
apropos,manandinfocommand to get some initial help - If no help found, use
findby searching for a keyword (time consuming) - If no help found, use
locateby searching for a keyword (less time consuming); you may to install it first and useupdatedbto update the database - Look out for typo while naming, configuring, permission string etc.
- Use
fgandbgefficiently - Use
psandjobsto keep track of the running processes - Use
htopinstead oftop - Always mark your questions for review
- Always manually navigate to each question using the
prevandnextbuttons - Switch to
sudowhenever is necessary - Whenever you create a file, make sure the content is properly formatted and the proper permissions have been configured
- Use
gitlog to validate the git commit - Use
git diffto validate the git commit - Use
dockercommands to validate the container/image/logs
- Build and install software from source
- Fix
apacheprocess to start successfully - Find the large files recursively and delete the largest one
- Find the files based on the permissions
- Find the high CPU and high read process and kill it
- Git init, commit, and push it to remote
- Docker run command with restart policy, port, and image
- Extend LV
- Create a swap partition and add it to
/etc/fstab - Mount NFS with
ro,rww/securityoptions - Create a netfilter to allow port 8080
- Enable ntp and change the timezone
- Change
nprocfor the userhardandsoftlimit - Schedule a cron tab for the user to take a backup
- Configure sshd to allow keyboard authentication for the user
- Create a bash script and run it as a cron job
- Creae a new user and add it to the group e.g.
sudo- Make the group as primary/secondary
- Create vm swappiness and set it to
10; make it persistent - Create a xfs filesystem and mount it
- Create a VM using
virt-installand autostart it - Fix the high disk usage by deleting the files and by finding the mount
- Find the correct certificate and private key and delete the others
- Generate the certificate for the new CN
maninfolocatefindupdatedbhtoptoppsjobsfgbgsudo
find / -name "file_name" -type ffind / -name "file_name" -type dfind / -name "file_name" -type lfind / -name "file_name" -type sfind / -name "file_name" -user "username"find / -name "file_name" -group "groupname"find / -name "file_name" -perm 777
git initgit addgit commitgit pushgit loggit diffgit status
docker rundocker psdocker logsdocker startdocker stopdocker restartdocker rmdocker rmidocker pulldocker execdocker image
crontab -lcrontab -ecrontab -u username -lcrontab -u username -e
iptables -Liptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPTiptables -D INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
ufw statusufw allow 80/tcpufw deny 80/tcpufw delete allow 80/tcpufw delete deny 80/tcp
timedatectl statustimedatectl set-timezone "Asia/Kolkata"timedatectl set-ntp truetimedatectl set-ntp false
sysctl -asysctl -p /etc/sysctl.conf
ulimit -aulimit -n 1000ulimit -u 1000ulimit -S 1000ulimit -H 1000
systemctl statussystemctl startsystemctl stopsystemctl restartsystemctl enablesystemctl disablesystemctl list-unit-filessystemctl list-units
sshd -tsshd -t -f /etc/ssh/sshd_config
:w:q:q!:wq:wq!
mkfs.xfsmountumount
swaponswapoff
lvcreatelvremovevgcreatevgremovepvcreatepvremove
virt-installvirsh listvirsh startvirsh stopvirsh destroyvirsh consolevirsh attach-device
Here's a summary of my experience with the LFCS exam and additional tips that might help you succeed:
-
Time Management
- The exam is time-sensitive, so practice completing tasks quickly
- Skip complex questions initially and return to them later
- Allocate more time for complex tasks like storage management and container operations
- Keep track of time - aim to spend no more than 5-7 minutes per question
-
System Navigation
- Master keyboard shortcuts for faster navigation
- Keep multiple terminal windows open for different tasks
- Use tmux or screen for better terminal management
- Create a quick reference of commonly used paths (/etc/, /var/log/, etc.)
-
Command Line Efficiency
- Use tab completion extensively
- Master command history (Ctrl+R for search)
- Utilize command line aliases for frequent operations
- Keep command syntax simple and verify before execution
-
Problem-Solving Approach
- Always verify your work after completing a task
- If a command fails, check logs immediately (/var/log/)
- Have multiple approaches ready for each type of task
- Don't hesitate to use built-in help (man, info, --help)
-
Critical Areas to Focus
- Storage management (LVM, file systems)
- Service management with systemd
- Network configuration and troubleshooting
- Container operations (especially Docker)
- User and permission management
Remember: The exam environment is designed to test real-world scenarios. Practice in a non-GUI environment, and focus on understanding the concepts rather than memorizing commands. Good luck!