Docsity

IFT 250 Final Exam – UNIX/Linux Commands Study Guide, Exams of Linux skills

Toggle sidebar
bg1
IFT 250 Final Exam (Commands)
pwd-print working directory
- prints the current directory's absolute path starting from root directory
cd-change directory
cd .-this is the directory you are currently in
cd ..-(parent directory) takes you to the directory above your current
cd ~-this directory defaults to your home directory
cd --This will take you to the previous directory you were just at
ls-list directory contents
touch-creates a file
file-it will show you a description of the files contents and determine file type
cat-short for concatenate, not only displays file contents but it can combine multiple files and
show the output of them
less-If viewing text files larger than a simple output, this command displays text in a paged
manner so you can navigate through a text file page by page
history-shows history of commands that you previously entered
cp-copies a file or directory from one location to another
mv-moves a file or directory. can also rename files or directories
mkdir-makes a directory
pf3
pf4
pf5

Partial preview of the text

Download IFT 250 Final Exam – UNIX/Linux Commands Study Guide and more Exams Linux skills in PDF only on Docsity!

IFT 250 Final Exam (Commands)

pwd-print working directory

  • prints the current directory's absolute path starting from root directory cd-change directory cd .-this is the directory you are currently in cd ..-(parent directory) takes you to the directory above your current cd ~-this directory defaults to your home directory cd - -This will take you to the previous directory you were just at ls-list directory contents touch-creates a file file-it will show you a description of the files contents and determine file type cat-short for concatenate, not only displays file contents but it can combine multiple files and show the output of them less-If viewing text files larger than a simple output, this command displays text in a paged manner so you can navigate through a text file page by page history-shows history of commands that you previously entered cp-copies a file or directory from one location to another mv-moves a file or directory. can also rename files or directories mkdir-makes a directory

rm-it removes files rmdir-it removes a directory find-helps you find a specific file but you must specify what directory you will be searching in help-allows you to check what flags are available to a particular command man-it prints out the manual for a certain command whatis-provides a bread decryption of command line programs alias-If you need to type a long command many times, you can create an alias to make things faster. It will not save your alias after a reboot exit-exit from shell logout-logout date-displays current date and time cal-displays calendar of the current month df-to see current amount of free space on our disk drives free-to display the amount of free memory locate-indexed and stored in a database whereis-locates binaries, source files, and manual page files for a command which-shows which command is being used from $PATH more-display file with paging (screenfuls) head-output the first part of files tail-output the last part of files cron & at-these are schedulers grep, tr, awk-searching and manipulating text tar-creating archives echo-prints a string of text to the monitor type-display information about the command type hostname-show or set the systems host name

kill - [signal] PID-kills a process killall-Kills all processes with a specific name dpkg / rpm-depackage install or manage individual packages apt-get or apt-used to install or manage software coming from repositories sudo dpkg - I [package name]-installs a package that has been downloaded from somewhere other than a repository

  • does not handle dependency resolution sudo apt-get update-Updates the RPM package libraries. sudo apt-get upgrade-installs any available updates for all packages already installed on the system from the repositories sudo apt-get remove [package name]-remove installed package dpkg - l-displays all packages installed on the system mount-displays a list of mounted file systems and some details like device name, mount location, filesystem type, and attributes umount-unmounts specified device from the file system sudo fdisk [device]-partitions a storage device in an interactive manner sudo mkfs - t [filesystem type] [device]-Creates a file system on a partition fsck-used to check and repair a filesystem dd-creates a raw, bit by bit (bitstream) copy of data, copies blocks of data from one place to another dd syntax-dd if=[input file] of=[outputfile] ping-used to verify a network connection between devices ping syntax-ping [options] [destination ip or hostname] traceroute-lists all hops between the originator and the destination ip a-shows details for a systems network interfaces netstat-shows network settings and statistics ftp-(file transfer protocol) file transfer protocol client. upload or download files from a remote system.

wget-used to download files from the web ssh-(secure shell protocol) used when wanting to connect one machine to another in a secure fashion across the internet or within their network scp/sftp-(secure copy/secure file transfer) just ssh being used to copy files or to use ftp across a secure tunnel locate-locates files by name by using an index (database) to locate these files. not always up to date so needs to be updated by updatedb command updatedb-update a database for locate find-Goes through the entire directory hierarchy to search for files in real time. You can look up file type, size, numerous tests, logical operators, actions, etc. xargs-(x arguments) takes standard input and uses it as arguments for a command tar-(tape archive) archiving utility, meaning it takes multiple files and puts them together into a single file useful for backups no compression on its own, but available zip-another archiving utility but utilizes compression by default gzip-a compression utility that can be used in combination with tar to do archiving and compression gunzip-uncompresses a gzip bzip2-similar to gzip but uses a different algorithm more compression than gzip, resulting in smaller files, but takes longer bunzip2-uncompresses a bzip rsync-utility to transfer and sync files between one device and another sort-sorts contents of text files and can also sort an input stream from standard input uniq-removes or filters out any duplicate lines from a sorted file cut-is used to remove sections from each line of a file/files paste-merging lines of files and adds one or more columns of text to a file join-allows us to take lines from two files on a common field so file1.txt "1. John 2.Sally"

  • What command will bring the gedit program to the foreground-fg