1.11 Flashcards
What does the ‘Man’ command do ?
Offers a manual or help
In Linux What’s the command for online help ?
Man grep
What Linux command lists the directory ?
Ls
In Linux What command Displays the current working directory path ?
Pwd Or Print working directory.
In Linux what command renames a file ?
Mv
“move or rename”
What Linux command coppies or duplicates directories ?
CP
Will the Rm command remove directories ?
No. All files must be deleted or a ‘-r’ wildcard must be added to delete
In Linux How do you elevate priviliges in the shell ?
Sudo command
How would you modify file settings in Linux ?
Use the Chown command
Change-ownership
In Linux How do you change the mode of a file system ?
Chmod
What does the apt-get command do ?
Manages app packages i.e. install, delete, update.
What command manages app packages on the Yellowdog distro ?
Yellowdowg Update Manager or Yum command
What Linux command allows you to Manage the network interfaces ?
IP
What Linux command allows you to View interface addresses ?
IP address
What command allows you to view the routing table ?
IP routing table
What does the following command do ?
sudo ip address add 192.168.121.241/24 dev eth0
Elevates permissions to allow you to add an IP address to a interface called ‘eth0’ i.e. an ethernet port.
In Linux What command allows you to view the file system and the amount of free space ?
df
What linux command allows you to open a process similar to windows task manager ?
The ‘Ps’ command will allow you to view the current proccesses.
What will the following command show ?
ps -e | more
It’ll show all proccesses
In Linux What command allows you to View CPU, RAM, and resource utilizations ?
Top command
How would you locate a file by name or extension ?
Use the ‘find’ command
What does the following command do ?
find . -name “*.txt”
It’ll locate any file with the extension .txt
What does the nano command do ?
Opens a full text graphical based editor
What m Linux command Syncs files between storage devices ?
Rsync
What options are there to add SMB to Linux ?
Samba
Cd
Changes the current directory.
chmod
Changes(modifies) file perissions
Chown
Changes file ownership and group
CP
Copies files
Ls
Lists files in a directory
Mkdir
Makes directory/folder
Mv
Move or rename single file.
Rm
Remove a file.
pwd
Displays current directory
Cat
Displays the content of a file
Df
Disk free space
dd
Copies blocks of data from one file to another
Find
Searches for text in a file hierachy
Grep
Searches for regular expressions in a text file
Nano
Text based editor for files
Apt-get
Downloads files from a repository site
Yum
The YellowdogUpdater, Modified (YUM) is a free and open-source command-line package-management utility for computers running RedHat-based distributions.
Shutdown
Ronseal
Vi
Starts the visual editor
Man
displays hel for commands
Passwd
Change password
Sudo
Runs the command as another user
What type of user is set when using the Sudo command ?
Usually switch to the root user
Dig
DNS query
Ip
NIC info
ifconfig
NIC info
iwconfig
Wireless config info
Ps
Displays current running proccesses
Kill
Terminates a process
Top
Displays runngins proccess like task manager
What does rwx stand for wrt file permissions ?
read, write, execute.
What will the follwing command do ?
ls -la
list all the files in a long format
fsck
Linux utility is used to check and repair disks
What Linux command can be used to run a single command as another user ?
Sudo
What Linux command allows you to change user logins at the command line ?
Su
A user has issued the following command:
Cat aplus.txt
What will his command do?
Display data within the file.
What are the benefits of Samba ?
Unix-like OSes can interoperate with Windows and provided file and print services to Windows clients.
APT
Advanced Packaging Tool
What does the Advanced Packaging Tool (APT) command do?
used to install, uninstall, and upgrade applications in Debian-based distributions like Ubuntu.
What structure will Chmod work on ?
Owner/Group/Everyone
What permissions are granted for different groups of users ?
Read/Write/execute
What numerical values are associated with Read/Write/Execute ?
4/2/1
Du command ?
Used to estimate the file space usage
What command is Used to estimate the file space usage ?
Du
Which command allows you to edit a file in the terminal ?
Vi